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)); }
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)); }
public IEnumerable <TypeHandle> GetGenericArguments(Stencil stencil) { foreach (var t in this.Resolve(stencil).GenericTypeArguments) { yield return(t.GenerateTypeHandle(stencil)); } }
public string FriendlyName(Stencil stencil) { if (!string.IsNullOrEmpty(Identification)) { return(this.Resolve(stencil).FriendlyName()); } return(""); }
public ClassSearcherFilterProvider(Stencil stencil) { m_Stencil = stencil; }
public void SetParent(Type type, VSGraphModel graphModel) { Assert.IsTrue(typeof(Stencil).IsAssignableFrom(type)); m_Parent = (Stencil)Activator.CreateInstance(type); graphModel.AssetModel.SetAssetDirty(); }
public MacroSearcherFilterProvider(Stencil stencil) { m_Stencil = stencil; }
public string Name(Stencil stencil) { return(this.Resolve(stencil).Name); }
public static TypeSyntax ToTypeSyntax(this TypeHandle handle, Stencil stencil) { return(handle.Resolve(stencil).ToTypeSyntax()); }
public static ITypeMetadata GetMetadata(this TypeHandle th, Stencil stencil) { return(th.GetMetadata(stencil.GraphContext.TypeMetadataResolver)); }
public static ITypeMetadata GetMetadata(this Type t, Stencil stencil) { return(t.GenerateTypeHandle(stencil).GetMetadata(stencil)); }
public static Type Resolve(this TypeHandle th, Stencil stencil) { return(th.Resolve(stencil.GraphContext.CSharpTypeSerializer)); }
public static TypeHandle GenerateTypeHandle(this Type t, Stencil stencil) { Assert.IsNotNull(t); return(t.GenerateTypeHandle()); }
public ClassSearcherDatabaseProvider(Stencil stencil) { m_Stencil = stencil; }