IntroduceConversionOperator(IAdviser<INamedType>, string, IType, IType, bool, OverrideStrategy, Action<IMethodBuilder>?, object?, object?)
Declaration
public static IIntroductionAdviceResult<IMethod> IntroduceConversionOperator(this IAdviser<INamedType> adviser, 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 |
|---|---|---|
| IAdviser<INamedType> | adviser | |
| string | template | |
| IType | fromType | |
| IType | toType | |
| bool | isImplicit | |
| OverrideStrategy | whenExists | |
| Action<IMethodBuilder> | buildOperator | |
| object | args | |
| object | tags |
Returns
| Type | Description |
|---|---|
| IIntroductionAdviceResult<IMethod> |