M
Mario
Hi,
I know Framework doesn't support default members (unless member takes
arguments).
However, for instance, Int32 is a Structure; and we can initialize it like
this:
Dim myInt As Int32
myInt = 123456
Isn't this a default member? There are other members (Int32.MaxValue, etc.).
My trouble is: I want to create a custom data type, as a structure, and with
a default member.
But I dont want to use it like this: structMyType.Value = 123456
So, why some structures are so lucky and I can't make my own?
Please explain if you can help me.
Thank you very much.
Mario
I know Framework doesn't support default members (unless member takes
arguments).
However, for instance, Int32 is a Structure; and we can initialize it like
this:
Dim myInt As Int32
myInt = 123456
Isn't this a default member? There are other members (Int32.MaxValue, etc.).
My trouble is: I want to create a custom data type, as a structure, and with
a default member.
But I dont want to use it like this: structMyType.Value = 123456
So, why some structures are so lucky and I can't make my own?
Please explain if you can help me.
Thank you very much.
Mario