Antmicro.Migrant.Utilities.SwapList.IsMatch C# (CSharp) Метод

IsMatch() приватный статический Метод

private static IsMatch ( Type candidate, Type value ) : bool
candidate System.Type
value System.Type
Результат bool
        private static bool IsMatch(Type candidate, Type value)
        {
            if(Helpers.IsOpenGenericType(candidate) && value.IsGenericType)
            {
                return GenericIsMatch(candidate, value.GetGenericTypeDefinition());
            }
            return candidate.IsAssignableFrom(value);
        }