Link<T> Constructors

Definition

Initializes a new instance of the Link<T> structure.

Overloads

Link<T>(IEnumerable<T>)

Initializes a new instance of the Link<T> structure by referencing the source.

Link<T>(Link<T>)

Initializes a new instance of the Link<T> structure by copying the internal state from another Link<T> instance.

Link<T>(T)

Initializes a new instance of the Link<T> structure by referencing the value of the property.

Initializes a new instance of the Link<T> structure by referencing the source.

public Link (System.Collections.Generic.IEnumerable<T> source);

Parameters

source
IEnumerable<T>

The source collection.

Remarks

Use this constructor to initialize the Link<T> with a deferred value loader (implements IEnumerable<T>)

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Initializes a new instance of the Link<T> structure by copying the internal state from another Link<T> instance.

public Link (System.Data.Linq.Link<T> link);

Parameters

link
Link<T>

The Link<T> instance from which to copy.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Initializes a new instance of the Link<T> structure by referencing the value of the property.

public Link (T value);

Parameters

value
T

The value for the property.

Remarks

Use this constructor when the value for the property is already known.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1