Antlr4.StringTemplate.Extensions.TypeExtensions.IsAssignableFrom C# (CSharp) 메소드

IsAssignableFrom() 공개 정적인 메소드

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