R
Ronchese
Hi all.
Is possible I coerce a value to a determined type informed by a string? See
the sample:
dim obj as Object
obj = SomeConversionType(2, "System.Windows.Forms.DockStyle")
or
obj = SomeConversionType("System.Windows.Forms.DockStyle.Bottom")
?
I need use that because I'm loading and setting an object via reflection,
and for reflection can find the corret Property, I must to inform the exact
value type.
Its possible do that? Or have other way?
[]s
Cesar
Is possible I coerce a value to a determined type informed by a string? See
the sample:
dim obj as Object
obj = SomeConversionType(2, "System.Windows.Forms.DockStyle")
or
obj = SomeConversionType("System.Windows.Forms.DockStyle.Bottom")
?
I need use that because I'm loading and setting an object via reflection,
and for reflection can find the corret Property, I must to inform the exact
value type.
Its possible do that? Or have other way?
[]s
Cesar