Example #1
0
		public DeclSecurityOptions(DeclSecurity ds) {
			this.Action = ds.Action;
			this.CustomAttributes.AddRange(ds.CustomAttributes);
			this.V1XMLString = ds.GetNet1xXmlString();
			if (this.V1XMLString == null)
				this.SecurityAttributes.AddRange(ds.SecurityAttributes);
		}
Example #2
0
 void Add(DeclSecurity decl)
 {
     if (decl == null)
     {
         return;
     }
     Add(decl.SecurityAttributes);
     Add(decl.CustomAttributes);
 }
 void Load(DeclSecurity obj)
 {
     if (obj == null)
         return;
     Add(obj.Action);
     Add(obj.SecurityAttributes);
     Add(obj.CustomAttributes);
     obj.GetBlob();
 }
Example #4
0
		public DeclSecurity CopyTo(ModuleDef module, DeclSecurity ds) {
			ds.Action = this.Action;
			ds.CustomAttributes.Clear();
			ds.CustomAttributes.AddRange(CustomAttributes);
			ds.SecurityAttributes.Clear();
			if (this.V1XMLString == null)
				ds.SecurityAttributes.AddRange(SecurityAttributes);
			else
				ds.SecurityAttributes.Add(SecurityAttribute.CreateFromXml(module, this.V1XMLString));
			return ds;
		}
Example #5
0
 void Add(DeclSecurity decl)
 {
     if (decl == null)
         return;
     Add(decl.SecurityAttributes);
     Add(decl.CustomAttributes);
 }