Example #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(ArrayR3 <T> other)
 {
     return(object.ReferenceEquals(this.array, other.array));
 }
Example #2
0
 /// <summary>
 /// Creates a ReadOnlyArrayR3 wrapper from an ArrayR3 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 ReadOnlyArrayR3(ArrayR3 <T> array)
 {
     this.array = array.Array;
     //if (this.array == null)
     //    throw new ArgumentException(paramName: nameof(array), message: ERR.ARRAY_ARG_ABSENT);
 }