namespace System.Runtime.InteropServices {
+ [Serializable]
+ [ComVisible (true)]
public struct ArrayWithOffset {
object array;
int offset;
return (other.array == array && other.offset == offset);
}
+ public bool Equals (ArrayWithOffset obj)
+ {
+ return obj.array == array && obj.offset == offset;
+ }
+
+ public static bool operator == (ArrayWithOffset a, ArrayWithOffset b)
+ {
+ return a.Equals (b);
+ }
+
+ public static bool operator != (ArrayWithOffset a, ArrayWithOffset b)
+ {
+ return !a.Equals (b);
+ }
+
public override int GetHashCode ()
{
return offset;