Question about implicit operator overloading in c#

Posted by devoured elysium on Stack Overflow See other posts from Stack Overflow or by devoured elysium
Published on 2010-03-30T04:06:52Z Indexed on 2010/03/30 4:13 UTC
Read the original article Hit count: 402

MyClass c = 10;

Is there any way to make this code work? I know that through the implicit operator overloading you can get the opposite to work:

int i = instanceOfMyClass;

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about operator-overloading