I have the following operator in my Visual WebPart's codebehind file:
public static implicit operator TemplateControl
(ScholarChip.PaymentProcessor.PaymentProcessor.PaymentProcessor target)
{
return ((target == null) ? null : target.TemplateControl);
}
I'm receiving the error:
User-defined conversion must convert to or from the enclosing type
I'm unfamiliar with the above error. Can anyone suggest how I might rectify it? The code is being used in a Sharepoint 2010 Visual WebPart.
Thanks much:)