ObfuscateAnywayAttribute.cs 797 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace OPS.Obfuscator.Attribute
  6. {
  7. /// <summary>
  8. /// Add this to class members to obfuscate them anyway with a new name '_ObfuscateTo', although the settings did not allow to.
  9. /// For example if you do not want to obfuscate all public methods beside some specific.
  10. /// </summary>
  11. [AttributeUsage(AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Event)]
  12. public class ObfuscateAnywayAttribute : System.Attribute
  13. {
  14. #pragma warning disable
  15. private string obfuscateTo;
  16. public ObfuscateAnywayAttribute(String _ObfuscateTo)
  17. {
  18. this.obfuscateTo = _ObfuscateTo;
  19. }
  20. #pragma warning restore
  21. }
  22. }