Example #1
0
 public static bool IsSimilar(CustomParameterInfo a, CustomParameterInfo b)
 {
     // TODO: generics are missing
     if (a == null || b == null)
     {
         return(false);
     }
     if (a == b)
     {
         return(true);
     }
     if (a.IsOut != b.IsOut)
     {
         return(false);
     }
     if (a.ParameterType.IsByRef)
     {
         if (!b.ParameterType.IsByRef)
         {
             return(false);
         }
         return(a.ParameterType.GetElementType() == b.ParameterType.GetElementType());
     }
     return(a.ParameterType == b.ParameterType);
 }
Example #2
0
 public bool IsSimilar(CustomParameterInfo trg)
 {
     return(IsSimilar(this, trg));
 }