Open sandboxFocus

Method IntroduceConversionOperator

IntroduceConversionOperator(INamedType, string, IType, IType, bool, OverrideStrategy, Action<IMethodBuilder>?, object?, object?)

Declaration
IIntroductionAdviceResult<IMethod> IntroduceConversionOperator(INamedType targetType, string template, IType fromType, IType toType, bool isImplicit = false, OverrideStrategy whenExists = OverrideStrategy.Default, Action<IMethodBuilder>? buildOperator = null, object? args = null, object? tags = null)
Parameters
Type Name Description
INamedType targetType
string template
IType fromType
IType toType
bool isImplicit
OverrideStrategy whenExists
Action<IMethodBuilder> buildOperator
object args
object tags
Returns
Type Description
IIntroductionAdviceResult<IMethod>