1
Automation Interface, Add-Ins and Tools / C# Attribute Specification
« on: March 02, 2005, 04:48:22 pm »
Does anybody know how to describe 'Attribute Specifications' in EA and have it generate properly?
Also, how does an import of a class that uses Attributes work as well?
For example:
// A test class where each method has its own pet.
class AnimalTypeTestClass {
[AnimalType(Animal.Dog)]
public void DogMethod() {}
[AnimalType(Animal.Cat)]
public void CatMethod() {}
[AnimalType(Animal.Bird)]
public void BirdMethod() {}
}
Also, how does an import of a class that uses Attributes work as well?
For example:
// A test class where each method has its own pet.
class AnimalTypeTestClass {
[AnimalType(Animal.Dog)]
public void DogMethod() {}
[AnimalType(Animal.Cat)]
public void CatMethod() {}
[AnimalType(Animal.Bird)]
public void BirdMethod() {}
}