Antmicro.Migrant.Utilities.SwapList.IsMatch C# (CSharp) Méthode

IsMatch() private static méthode

private static IsMatch ( Type candidate, Type value ) : bool
candidate System.Type
value System.Type
Résultat bool
        private static bool IsMatch(Type candidate, Type value)
        {
            if(Helpers.IsOpenGenericType(candidate) && value.IsGenericType)
            {
                return GenericIsMatch(candidate, value.GetGenericTypeDefinition());
            }
            return candidate.IsAssignableFrom(value);
        }