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;
			}
Example #2
0
 /// <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;
 }
Example #3
0
 /// <inheritdoc />
 public WatermarkingPhase(ConfuserComponent parent) : base(parent)
 {
 }
Example #4
0
 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);
     }
 }
Example #5
0
            bool IDictionary <ConfuserComponent, Dictionary <string, string> > .Remove(ConfuserComponent key)
            {
                var item = new SettingItem <Protection>(key.Id, SettingItemAction.Remove);

                rule.Add(item);
                return(true);
            }
Example #6
0
 bool IDictionary <ConfuserComponent, Dictionary <string, string> > .ContainsKey(ConfuserComponent key)
 {
     return(true);
 }
Example #7
0
 /// <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;
 }
Example #8
0
		/// <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;
		}