ILNumerics Ultimate VS

ConcreteArrayT1, LocalT, InT, OutT, RetT, StorageTReferenceCount Property

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Gets the number of arrays currently sharing the storage with this array.

[ILNumerics Core Module]

Namespace:  ILNumerics.Core.Arrays
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: (5.5.7503.3146)

public override int ReferenceCount { get; }

Property Value

Type: Int32

Mutable arrays (ArrayT) can only be modified when no other arrays share the same storage. This will be true for ArrayT in regular use and can be verified by reading the ReferenceCount property. In order for mutable arrays to allow modifications ReferenceCount must be 1.

[ILNumerics Core Module]

See Also