Esempio n. 1
0
 /// <summary>
 /// Tests whether the specified <see cref="MemoryArray&lt;T&gt;"/> structure is equivalent to this
 /// <see cref="MemoryArray&lt;T&gt;"/> 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&lt;T&gt;"/> structure; otherwise,
 /// <b>false</b>.</returns>
 public bool Equals(MemoryArray <T> other)
 {
     EnsureNotDisposed();
     return((this.baseAddress == other.baseAddress) && (this.length == other.length));
 }
Esempio n. 2
0
 /// <summary>
 /// Tests whether the specified <see cref="MemoryArray&lt;T&gt;"/> structure is equivalent to this
 /// <see cref="MemoryArray&lt;T&gt;"/> 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&lt;T&gt;"/> structure; otherwise,
 /// <b>false</b>.</returns>
 public bool Equals(MemoryArray <T> other)
 {
     return((this.baseAddress == other.baseAddress) && (this.length == other.length));
 }