M
mrchillisauce
I have an class that has a member that is an enumeration.
When the property that exposes this is accessed I want to check if it has a
value and if not assign it a default one.
private _EnumX as EnumX
public readonly property XXXX as EnumX
Get
If _EnumX is Nothing then
_EnumX= EnumX.AnItemInTheEnum
End If
Return _EnumX
End Get
As Enums are value type this cannot be done...
What is the best way to do this?
Thanks
When the property that exposes this is accessed I want to check if it has a
value and if not assign it a default one.
private _EnumX as EnumX
public readonly property XXXX as EnumX
Get
If _EnumX is Nothing then
_EnumX= EnumX.AnItemInTheEnum
End If
Return _EnumX
End Get
As Enums are value type this cannot be done...
What is the best way to do this?
Thanks