0
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 when you make some kind of statement in that style:
Dim objServico as Servico
List all my services the same when we declare a color. An image for better understanding:
Did the answer solve your problem? Do you think you can accept it? If you don’t know how you do it, check out [tour]. This would help a lot to indicate that the solution was useful to you and to give an indication that there was a satisfactory solution. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).
– Maniero