M
MLM450
Is it possible to retrieve an item's "sizeconst" value dynamically?
I have the following member defined in a class:
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
private char[] units;
I want the code that values the units member to know the value of
SizeConst. I know I can define the size in another member but
accessing the SizeConst would make things much cleaner for what I am
trying to do.
Thanks,
Mike
I have the following member defined in a class:
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
private char[] units;
I want the code that values the units member to know the value of
SizeConst. I know I can define the size in another member but
accessing the SizeConst would make things much cleaner for what I am
trying to do.
Thanks,
Mike