Open sandboxFocus

Method IntroduceUnaryOperator

IntroduceUnaryOperator(IAdviser<INamedType>, string, IType, IType, OperatorKind, OverrideStrategy, Action<IMethodBuilder>?, object?, object?)

Declaration
public static IIntroductionAdviceResult<IMethod> IntroduceUnaryOperator(this IAdviser<INamedType> adviser, string template, IType inputType, IType resultType, OperatorKind kind, OverrideStrategy whenExists = OverrideStrategy.Default, Action<IMethodBuilder>? buildOperator = null, object? args = null, object? tags = null)
Parameters
Type Name Description
IAdviser<INamedType> adviser
string template
IType inputType
IType resultType
OperatorKind kind
OverrideStrategy whenExists
Action<IMethodBuilder> buildOperator
object args
object tags
Returns
Type Description
IIntroductionAdviceResult<IMethod>