protected override void LoadExtraData(string name, XmlNode node) { var attributes = ((XmlElement)node).GetAttribute("attributes"); var xml_constraints = new XMLGenericParameterConstraints(attributes); constraints.Add(name, xml_constraints); XmlNode orig = node; var child = node.FirstChild; if (child != null && child.Name == "generic-parameter-constraints") { xml_constraints.LoadData(child); } base.LoadExtraData(name, orig); }
public MasterGenericTypeParameter(string name, XMLGenericParameterConstraints constraints, XMLAttributes attributes) : base(name, (Mono.Cecil.GenericParameterAttributes)Enum.Parse(typeof(Mono.Cecil.GenericParameterAttributes), constraints.attributes)) { this.constraints = constraints; this.attributes = attributes; }
protected override void LoadExtraData (string name, XmlNode node) { var attributes = ((XmlElement) node).GetAttribute ("attributes"); var xml_constraints = new XMLGenericParameterConstraints (attributes); constraints.Add (name, xml_constraints); XmlNode orig = node; var child = node.FirstChild; if (child != null && child.Name == "generic-parameter-constraints") { xml_constraints.LoadData (child); } base.LoadExtraData (name, orig); }
public MasterGenericTypeParameter (string name, XMLGenericParameterConstraints constraints, XMLAttributes attributes) : base (name, (Mono.Cecil.GenericParameterAttributes)Enum.Parse (typeof (Mono.Cecil.GenericParameterAttributes), constraints.attributes)) { this.constraints = constraints; this.attributes = attributes; }