CodeDOM question: explicit conversion operator generation


A

aurawind2k

I would like to generate through CodeDom an explicit conversion
operator. Is there a way of doing this?
 
Ad

Advertisements

A

aurawind2k

I would like to generate through CodeDom an explicit conversion
operator. Is there a way of doing this?
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;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top