예제 #1
0
 /// <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());
 }
예제 #2
0
 /// <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();
 }