Open sandboxFocus

Method IntroduceInterface

IntroduceInterface(IAdviser<INamespaceOrNamedType>, string, OverrideStrategy, Action<INamedTypeBuilder>?)

Declaration
public static IIntroductionAdviceResult<INamedType> IntroduceInterface(this IAdviser<INamespaceOrNamedType> adviser, string name, OverrideStrategy whenExists = OverrideStrategy.Default, Action<INamedTypeBuilder>? buildType = null)
Parameters
Type Name Description
IAdviser<INamespaceOrNamedType> adviser
string name
OverrideStrategy whenExists
Action<INamedTypeBuilder> buildType
Returns
Type Description
IIntroductionAdviceResult<INamedType>