Example #1
0
        public static bool IsAssignableFrom(this TypeHandle self, TypeHandle other, Stencil stencil)
        {
            var selfMetadata  = self.GetMetadata(stencil);
            var otherMetadata = other.GetMetadata(stencil);

            return(selfMetadata.IsAssignableFrom(otherMetadata));
        }
Example #2
0
        public static bool IsSubclassOf(this TypeHandle self, TypeHandle other, Stencil stencil)
        {
            var selfMetadata  = self.GetMetadata(stencil);
            var otherMetadata = other.GetMetadata(stencil);

            return(selfMetadata.IsSubclassOf(otherMetadata));
        }
Example #3
0
 public static ITypeMetadata GetMetadata(this TypeHandle th, Stencil stencil)
 {
     return(th.GetMetadata(stencil.GraphContext.TypeMetadataResolver));
 }