ExtensionCollection<T> Constructors

Definition

Initializes a new instance of the ExtensionCollection<T> class.

Overloads

ExtensionCollection<T>(T)

Initializes a new instance of the ExtensionCollection<T> class with a specified owner.

ExtensionCollection<T>(T, Object)

Initializes a new instance of the ExtensionCollection<T> class with a specified owner and synchronization root.

ExtensionCollection<T>(T)

Source:
ExtensionCollection.cs
Source:
ExtensionCollection.cs
Source:
netstandard.cs

Initializes a new instance of the ExtensionCollection<T> class with a specified owner.

C#
public ExtensionCollection(T owner);

Parameters

owner
T

The owner of the collection.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ExtensionCollection<T>(T, Object)

Source:
ExtensionCollection.cs
Source:
ExtensionCollection.cs
Source:
netstandard.cs

Initializes a new instance of the ExtensionCollection<T> class with a specified owner and synchronization root.

C#
public ExtensionCollection(T owner, object syncRoot);

Parameters

owner
T

The owner of the collection.

syncRoot
Object

The object used to synchronize.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)