Share via


ConventionSet.AddBefore Method

Definition

Overloads

AddBefore<TConvention>(IList<TConvention>, TConvention, Type)

Adds a convention before an existing convention.

AddBefore<TConvention>(List<TConvention>, TConvention, Type)

Adds a convention before an existing convention.

AddBefore<TConvention>(IList<TConvention>, TConvention, Type)

Adds a convention before an existing convention.

public static bool AddBefore<TConvention> (System.Collections.Generic.IList<TConvention> conventionsList, TConvention newConvention, Type existingConventionType);
static member AddBefore : System.Collections.Generic.IList<'Convention> * 'Convention * Type -> bool
Public Shared Function AddBefore(Of TConvention) (conventionsList As IList(Of TConvention), newConvention As TConvention, existingConventionType As Type) As Boolean

Type Parameters

TConvention

The type of convention being added.

Parameters

conventionsList
IList<TConvention>

The list of existing convention instances to scan.

newConvention
TConvention

The new convention.

existingConventionType
Type

The type of the existing convention.

Returns

true if the convention was added.

Applies to

AddBefore<TConvention>(List<TConvention>, TConvention, Type)

Adds a convention before an existing convention.

public static bool AddBefore<TConvention> (System.Collections.Generic.List<TConvention> conventionsList, TConvention newConvention, Type existingConventionType);
static member AddBefore : System.Collections.Generic.List<'Convention> * 'Convention * Type -> bool
Public Shared Function AddBefore(Of TConvention) (conventionsList As List(Of TConvention), newConvention As TConvention, existingConventionType As Type) As Boolean

Type Parameters

TConvention

The type of convention being added.

Parameters

conventionsList
List<TConvention>

The list of existing convention instances to scan.

newConvention
TConvention

The new convention.

existingConventionType
Type

The type of the existing convention.

Returns

true if the convention was added.

Applies to