Did you see what was added to .NET framework, I couldn't find any reference on how to make it work.
[AttributeUsage(AttributeTargets.Delegate | (AttributeTargets.Parameter | (AttributeTargets.Interface | (AttributeTargets.Event | (AttributeTargets.Field | (AttributeTargets.Property | (AttributeTargets.Method | (AttributeTargets.Enum | (AttributeTargets.Struct | (AttributeTargets.Class | AttributeTargets.Assembly))))))))), AllowMultiple=true, Inherited=false)]public sealed class ObfuscationAttribute : Attribute { // Methods public ObfuscationAttribute(); // Properties public bool ApplyToMembers { get; set; } public bool Exclude { get; set; } public string Feature { get; set; } public bool Strip { get; set; } // Fields private bool m_applyToMembers; private bool m_exclude; private string m_feature; private bool m_strip; }
[AttributeUsage(AttributeTargets.Delegate | (AttributeTargets.Parameter | (AttributeTargets.Interface |
(AttributeTargets.Event | (AttributeTargets.Field | (AttributeTargets.Property | (AttributeTargets.Method |
(AttributeTargets.Enum | (AttributeTargets.Struct |
(AttributeTargets.Class | AttributeTargets.Assembly))))))))), AllowMultiple=true, Inherited=false)]
public sealed class ObfuscationAttribute : Attribute
{
// Methods
public ObfuscationAttribute();
// Properties
public bool ApplyToMembers { get; set; }
public bool Exclude { get; set; }
public string Feature { get; set; }
public bool Strip { get; set; }
// Fields
private bool m_applyToMembers;
private bool m_exclude;
private string m_feature;
private bool m_strip;
}