Antlr4.StringTemplate.Extensions.TypeExtensions.IsAssignableFrom C# (CSharp) Method

IsAssignableFrom() public static method

public static IsAssignableFrom ( this type, Type otherType ) : bool
type this
otherType System.Type
return bool
        public static bool IsAssignableFrom(this Type type, Type otherType)
        {
            return type.GetTypeInfo().IsAssignableFrom(otherType.GetTypeInfo());
        }