Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CSC : error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
- using System;
- [AttributeUsage(AttributeTargets.All)]
- class MyAttribute : Attribute
- {
- public MyAttribute(int? value = null) { }
- }
- [My]
- class Program
- {
- static void Main() { }
- }
Advertisement
Add Comment
Please, Sign In to add comment