Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: sargasso on September 20, 2004, 12:00:54 am
-
Could anyone please explain what this does? (If anything?) In C#?
%if elemType == "Interface"%
%if opTag:"Attribute" != ""%
%REPLACE(opTag:"Attribute", ";", "\n")
%endIf%
tia
Bruce
(* another sweet mystery of life)
-
It ouputs the .Net attributes for the current method. So for an operation that has an "Attribute" tagged value with the text "[MyCustomAttribute("blah")];[Something]" it will produce something like this.
[MyCustomAttribute("blah")]
[Something]
private void operation1(){
}
It does this because that is the way they are reversed into the model when reverse engineering. (Or is it that they are reverse engineered that way because the templates do this?)
Anyway, I've ignored the bit that says is this class an interface. Up to this point, but I thought that was the relatively clear bit.
Simon.
PS. I hope I haven't upset you by giving you the solution to this SMOL. Don't worry, there are plenty more.
-
Aha! I didn't see the reverse engineering side of it!
Thanks
Bruce