Mega Code Archive

 
Categories / C# Tutorial / Operator Overload
 

There are two forms of conversion operators, implicit and explicit

The general form for each is shown here: public static operator implicit target-type(source-type v) {      return value;  } public static operator explicit target-type(source-type v) {      return value;  }