示例#1
0
 /// <summary>
 /// Indicates whether this and another instance are considered equivalent.
 /// </summary><returns>
 /// True if both instances share the same backing array, or if both backing arrays are absent; otherwise false.
 /// </returns>
 /// <param name="other">Another instance to compare against.</param>
 public bool Equals(ArrayR2 <T> other)
 {
     return(object.ReferenceEquals(this.array, other.array));
 }
示例#2
0
 /// <summary>
 /// Creates a ReadOnlyArrayR2 wrapper from an ArrayR2 wrapper.
 /// </summary><remarks>
 /// If a backing array is absent, the backing array of the ReadOnlyArray will simply be absent too.
 /// </remarks>
 /// <param name="array">A wrapped array to re-wrap as readonly.</param>
 public ReadOnlyArrayR2(ArrayR2 <T> array)
 {
     this.array = array.Array;
     //if (this.array == null)
     //    throw new ArgumentException(paramName: nameof(array), message: ERR.ARRAY_ARG_ABSENT);
 }