public static Info FromComponent(ConfuserComponent component, string pluginPath) { var ret = new Info(); ret.name = component.Name; ret.desc = component.Description; ret.id = component.Id; ret.fullId = component.FullId; ret.path = pluginPath; return ret; }
/// <summary> /// Initializes a new instance of the <see cref="ProtectionParameters" /> class. /// </summary> /// <param name="component">The component that this parameters applied to.</param> /// <param name="targets">The protection targets.</param> internal ProtectionParameters(ConfuserComponent component, IList <IDnlibDef> targets) { comp = component; Targets = targets; }
/// <inheritdoc /> public WatermarkingPhase(ConfuserComponent parent) : base(parent) { }
Dictionary <string, string> IDictionary <ConfuserComponent, Dictionary <string, string> > .this[ConfuserComponent key] { get { return(null); } set { rule.RemoveWhere(i => i.Id == key.Id); var item = new SettingItem <Protection>(key.Id, SettingItemAction.Add); foreach (var entry in value) { item.Add(entry.Key, entry.Value); } rule.Add(item); } }
bool IDictionary <ConfuserComponent, Dictionary <string, string> > .Remove(ConfuserComponent key) { var item = new SettingItem <Protection>(key.Id, SettingItemAction.Remove); rule.Add(item); return(true); }
bool IDictionary <ConfuserComponent, Dictionary <string, string> > .ContainsKey(ConfuserComponent key) { return(true); }
/// <summary> /// Initializes a new instance of the <see cref="ProtectionPhase" /> class. /// </summary> /// <param name="parent">The parent component of this phase.</param> public ProtectionPhase(ConfuserComponent parent) { Parent = parent; }