Przeglądaj źródła

No obfuscate on JsonAttribute

Brad Robinson 2 lat temu
rodzic
commit
3402b05555
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      Topten.JsonKit/JsonAttribute.cs

+ 2 - 0
Topten.JsonKit/JsonAttribute.cs

@@ -13,6 +13,7 @@
 // and limitations under the License.
 
 using System;
+using System.Reflection;
 
 namespace Topten.JsonKit
 {
@@ -37,6 +38,7 @@ namespace Topten.JsonKit
     /// When using DataMember, the name of the field or property is used as is - the first letter is left in upper case
     /// </remarks>
     [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field)]
+    [Obfuscation(Exclude = true, ApplyToMembers = true)]        // Don't obfuscate because we use reflection to get function names
     public class JsonAttribute : Attribute
     {
         /// <summary>