ObfuscateAnywayAttribute.cs 888 B

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