fork download
  1. using System;
  2.  
  3. internal class NiceAttribute : Attribute
  4. {
  5. private string _stuff;
  6.  
  7. public string Stuff
  8. {
  9. set { _stuff = value; }
  10. }
  11. }
  12.  
  13. public static class Program
  14. {
  15. [Nice]
  16. public static void Main(string[] args)
  17. {
  18. }
  19. }
  20.  
stdin
Standard input is empty
compilation info
prog.cs(5,20): warning CS0414: The private field `NiceAttribute._stuff' is assigned but its value is never used
Compilation succeeded - 1 warning(s)
stdout
Standard output is empty