/// <summary> /// Is this generic parameter the same as the given other? /// </summary> public bool IsSame(XGenericInstanceMethod other) { if (!ElementMethod.IsSame(other.ElementMethod) || (GenericArguments.Count != other.GenericArguments.Count)) { return(false); } return(!GenericArguments.Where((t, i) => !t.IsSame(other.GenericArguments[i])).Any()); }
/// <summary> /// Is this generic parameter the same as the given other? /// </summary> public bool IsSame(XGenericInstanceMethod other) { if (!ElementMethod.IsSame(other.ElementMethod) || (GenericArguments.Count != other.GenericArguments.Count)) return false; return !GenericArguments.Where((t, i) => !t.IsSame(other.GenericArguments[i])).Any(); }