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); }
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(); }
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; }
void Add(DeclSecurity decl) { if (decl == null) return; Add(decl.SecurityAttributes); Add(decl.CustomAttributes); }