There are two forms of conversion operators, implicit and explicit : Conversion Operator Overload « Operator Overload « C# / CSharp Tutorial






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; 
}








8.4.Conversion Operator Overload
8.4.1.There are two forms of conversion operators, implicit and explicit
8.4.2.There are a few restrictions to conversion operators
8.4.3.User-Defined Conversions: Conversion Lookup
8.4.4.User-Defined Conversions