public bool Equals (TypeReference other) { return (other != null) && (this.typeName == other.typeName) && (this.assemblyName == other.assemblyName) && (this.assemblyLocation == other.assemblyLocation); }
public ToolboxItemToolboxNode (ToolboxItem item) : base (item.TypeName, item.AssemblyName.FullName) { base.Name = item.DisplayName; if (item.Bitmap != null) base.Icon = ImageToPixbuf (item.Bitmap); foreach (ToolboxItemFilterAttribute tbfa in item.Filter) base.ItemFilters.Add (tbfa); //we only need to serialise the ToolboxItem if it is non-standard, because we can reliably recreate the two built-in types if (item.GetType () == typeof (ToolboxItem)) toolboxItemType = null; //no-op, but this has consequences else if (item.GetType () == typeof (System.Web.UI.Design.WebControlToolboxItem)) toolboxItemType = new TypeReference (typeof (System.Web.UI.Design.WebControlToolboxItem)); else { serializedToolboxItem = SerializeToolboxItem (item); toolboxItemType = new TypeReference (item.GetType ()); } }
public TypeToolboxNode (Type type) { this.type = new TypeReference (type); }
public TypeToolboxNode (string typeName, string assemblyName, string assemblyLocation) { this.type = new TypeReference (typeName, assemblyName, assemblyLocation); }
public TypeToolboxNode (TypeReference typeRef) { this.type = typeRef; }