ProviderConventionSetBuilder.ReplaceConvention 方法

定义

重载

ReplaceConvention<TConvention,TImplementation>(IList<TConvention>, TImplementation)

将现有约定替换为派生约定。

ReplaceConvention<TConvention,TImplementation>(List<TConvention>, TImplementation)

将现有约定替换为派生约定。

ReplaceConvention<TConvention,TImplementation>(IList<TConvention>, TImplementation)

Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs

将现有约定替换为派生约定。

protected virtual bool ReplaceConvention<TConvention,TImplementation> (System.Collections.Generic.IList<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
abstract member ReplaceConvention : System.Collections.Generic.IList<'Convention> * 'Implementation -> bool
override this.ReplaceConvention : System.Collections.Generic.IList<'Convention> * 'Implementation -> bool
Protected Overridable Function ReplaceConvention(Of TConvention, TImplementation) (conventionsList As IList(Of TConvention), newConvention As TImplementation) As Boolean

类型参数

TConvention

要替换的约定的类型。

TImplementation

旧约定的类型。

参数

conventionsList
IList<TConvention>

要扫描的现有约定实例的列表。

newConvention
TImplementation

新约定。

返回

适用于

ReplaceConvention<TConvention,TImplementation>(List<TConvention>, TImplementation)

Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs

将现有约定替换为派生约定。

protected virtual bool ReplaceConvention<TConvention,TImplementation> (System.Collections.Generic.List<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
abstract member ReplaceConvention : System.Collections.Generic.List<'Convention> * 'Implementation -> bool
override this.ReplaceConvention : System.Collections.Generic.List<'Convention> * 'Implementation -> bool
Protected Overridable Function ReplaceConvention(Of TConvention, TImplementation) (conventionsList As List(Of TConvention), newConvention As TImplementation) As Boolean

类型参数

TConvention

要替换的约定的类型。

TImplementation

旧约定的类型。

参数

conventionsList
List<TConvention>

要扫描的现有约定实例的列表。

newConvention
TImplementation

新约定。

返回

适用于