Using system;
Namespace consoleApplication2 {///
INFO = TypeOf (Animal); colora = (color) Attribute.getCustomAttribute (IF (Colora! = null) {Console.Writeline ("Color of Animal IS: {0}", Colora.color }
}} [AttributeUSAGETS.CLIC Class Color: Attribute {Public String Color; Public Color (String Color) {this.color = color;}
}
[Color ("Red")] public class animal {}
[Color ("Blue")] public class cat: animal {} [color ("YELLOW")] public class dog: animal {}
} What this thing is to mean, there is a metadata called colors. There is a thing called animals, her color is red. There is a kind of animal called a cat, he is blue. There is a dog called a dog, he is yellow.