A aurawind2k Mar 31, 2008 #1 I would like to generate through CodeDom an explicit conversion operator. Is there a way of doing this?
I would like to generate through CodeDom an explicit conversion operator. Is there a way of doing this?
A aurawind2k Mar 31, 2008 #2 I would like to generate through CodeDom an explicit conversion operator. Is there a way of doing this? Click to expand... Here is a small example of what I am looking to generate: public static explicit operator ConvertedType(OriginalType orig) { ConvertedType result = new ConvertedType(); //Do Something return result; }
I would like to generate through CodeDom an explicit conversion operator. Is there a way of doing this? Click to expand... Here is a small example of what I am looking to generate: public static explicit operator ConvertedType(OriginalType orig) { ConvertedType result = new ConvertedType(); //Do Something return result; }