Exemple #1
0
        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;
 }
Exemple #3
0
		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);
		}
Exemple #4
0
		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;
		}