I have a structure called Servicos
and in it I have some static properties.
Public Structure Servico
Public Shared ReadOnly Property Instalacao As Servico
Get
Return New Servico(ServicesType.Instalacao)
End Get
End Property
Public Shared ReadOnly Property Desativacao As Servico
Get
Return New Servico(ServicesType.Desativacao)
End Get
End Property
Public Shared ReadOnly Property TrocaVeiculo As Servico
Get
Return New Servico(ServicesType.TrocaVeiculo)
End Get
End Property
Public Shared ReadOnly Property TrocaTitularidade As Servico
Get
Return New Servico(ServicesType.TrocaTitularidade)
End Get
End Property
End Structure
I'd like you to make some kind of statement like this:
Dim objServico as Servico
List all my services the same when declaring a color. An image for better understanding: