diff options
Diffstat (limited to 'ICSharpCode.Decompiler/Tests/CustomAttributes.code.cs')
-rw-r--r-- | ICSharpCode.Decompiler/Tests/CustomAttributes.code.cs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ICSharpCode.Decompiler/Tests/CustomAttributes.code.cs b/ICSharpCode.Decompiler/Tests/CustomAttributes.code.cs deleted file mode 100644 index 4130b0b0..00000000 --- a/ICSharpCode.Decompiler/Tests/CustomAttributes.code.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -namespace aa -{ - public static class CustomAtributes - { - [Flags] - public enum EnumWithFlag - { - All = 15, - None = 0, - Item1 = 1, - Item2 = 2, - Item3 = 4, - Item4 = 8 - } - [AttributeUsage(AttributeTargets.All)] - public class MyAttribute : Attribute - { - public MyAttribute(CustomAtributes.EnumWithFlag en) - { - } - } - [CustomAtributes.MyAttribute(CustomAtributes.EnumWithFlag.Item1 | CustomAtributes.EnumWithFlag.Item2)] - private static int field; - [CustomAtributes.MyAttribute(CustomAtributes.EnumWithFlag.All)] - public static string Property - { - get - { - return "aa"; - } - } - [Obsolete("some message")] - public static void ObsoletedMethod() - { - Console.WriteLine("{0} $$$ {1}", AttributeTargets.Interface, AttributeTargets.Property | AttributeTargets.Field); - AttributeTargets attributeTargets = AttributeTargets.Property | AttributeTargets.Field; - Console.WriteLine("{0} $$$ {1}", AttributeTargets.Interface, attributeTargets); - } - } -} |