13.07.2015 Views

C# Language Specification - Willy .Net

C# Language Specification - Willy .Net

C# Language Specification - Willy .Net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 24 Attributes[Example: In the example[Obsolete("This class is obsolete; use class B instead")]class A{public void F() {}}class B{public void F() {}}class Test{static void Main() {A a = new A(); // warninga.F();}}the class A is decorated with the Obsolete attribute. Each use of A in Main results in a warning thatincludes the specified message, “This class is obsolete; use class B instead.”end example]315

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!