Boo.Lang.Compiler.TypeSystem.GenericsServices.AreOfSameGenerity C# (CSharp) Method

AreOfSameGenerity() public static method

public static AreOfSameGenerity ( IMethod lhs, IMethod rhs ) : bool
lhs IMethod
rhs IMethod
return bool
        public static bool AreOfSameGenerity(IMethod lhs, IMethod rhs)
        {
            return (GetMethodGenerity(lhs) == GetMethodGenerity(rhs));
        }

Usage Example

Example #1
0
 public static CallableSignature GetOverriddenSignature(IMethod baseMethod, IMethod impl)
 {
     if (baseMethod.GenericInfo != null && GenericsServices.AreOfSameGenerity(baseMethod, impl))
     {
         return(baseMethod.GenericInfo.ConstructMethod(impl.GenericInfo.GenericParameters).CallableType.GetSignature());
     }
     return(baseMethod.CallableType.GetSignature());
 }
All Usage Examples Of Boo.Lang.Compiler.TypeSystem.GenericsServices::AreOfSameGenerity