Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Advising / IAdvice­Factory / Introduce­Unary­Operator

Method IntroduceUnaryOperator

IntroduceUnaryOperator(INamedType, String, IType, IType, OperatorKind, OverrideStrategy, Action<IMethodBuilder>, Object, Object)

Declaration
IIntroductionAdviceResult<IMethod> IntroduceUnaryOperator(INamedType targetType, string template, IType inputType, IType resultType, OperatorKind kind, OverrideStrategy whenExists, Action<IMethodBuilder> buildAction = null, object args = null, object tags = null)
Parameters
Type Name Description
INamedType targetType
String template
IType inputType
IType resultType
OperatorKind kind
OverrideStrategy whenExists
Action<IMethodBuilder> buildAction
Object args
Object tags
Returns
Type Description
IIntroductionAdviceResult<IMethod>