It seems that the reverse engineering of C# code store custom attributes becouse when I generate code they magically appear. I have looked and not found any way to augment anything but classes with custom attributes.
I would really like to have that feature since alot of nice things can be done by custom attributes.
Here is an example, first the orginal source:
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "
http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}
------------------------------
Then the source that EA generates for me:
///////////////////////////////////////////////////////////
// Service.cs
// Implementation of the Class Service
// Generated by Enterprise Architect
// Created on: 11-maj-2006 18:59:30
///////////////////////////////////////////////////////////
[WebService(Namespace = "
http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService {
~Service(){
}
public override void Dispose(){
}
public Service(){
}
[WebMethod]
public string HelloWorld(){
}
}//end Service
----------------------------
What I would like to is to edit the [WebMethod] custom attribute from with in EA.
Hope this will become a feature since C# heavly depends on custom attributes.