Metalama//API Documentation/Aspect API/Metalama.​Framework.​Advising/IAdvice­Factory/Introduce­Conversion­Operator
Open sandboxFocus

Method IntroduceConversionOperator

IntroduceConversionOperator(INamedType, String, IType, IType, Boolean, OverrideStrategy, Action<IMethodBuilder>, Object, Object)

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