Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kwazimoto

Pages: [1]
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() {}
   }

Pages: [1]