/// <summary> /// Tests whether the specified <see cref="MemoryArray<T>"/> structure is equivalent to this /// <see cref="MemoryArray<T>"/> structure. /// </summary> /// <param name="other">The structure to test.</param> /// <returns><b>true</b> if <paramref name="other"/> is equivalent to this /// <see cref="MemoryArray<T>"/> structure; otherwise, /// <b>false</b>.</returns> public bool Equals(MemoryArray <T> other) { EnsureNotDisposed(); return((this.baseAddress == other.baseAddress) && (this.length == other.length)); }
/// <summary> /// Tests whether the specified <see cref="MemoryArray<T>"/> structure is equivalent to this /// <see cref="MemoryArray<T>"/> structure. /// </summary> /// <param name="other">The structure to test.</param> /// <returns><b>true</b> if <paramref name="other"/> is equivalent to this /// <see cref="MemoryArray<T>"/> structure; otherwise, /// <b>false</b>.</returns> public bool Equals(MemoryArray <T> other) { return((this.baseAddress == other.baseAddress) && (this.length == other.length)); }