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;
			}
Beispiel #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;
 }
Beispiel #3
0
 /// <inheritdoc />
 public WatermarkingPhase(ConfuserComponent parent) : base(parent)
 {
 }
Beispiel #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);
     }
 }
Beispiel #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);
            }
Beispiel #6
0
 bool IDictionary <ConfuserComponent, Dictionary <string, string> > .ContainsKey(ConfuserComponent key)
 {
     return(true);
 }
Beispiel #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;
 }
Beispiel #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;
		}