Monday, April 12, 2010

Marking multiple attibute for a class

You may mark multiple attributes with the class by separating attibutes with comma with in square bracket. This will allow you to associate or mark your class with multiple attribute. Following show syntax for serailizable class which is obsoleted.

[Serializable, Obsolete("This class is not in use any more")]
class ObsoleteSerializableClass

No comments:

Post a Comment