Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: smartkid on August 06, 2005, 03:51:33 pm
-
Currently, EA does not support generics in C#2.0
-
What do you think it doesn't support? Support for C# 2.0 was added in version 4.5.
-
The generic types of generic methods lost in importing.
For example:
when a method is declared as:
public void MyMethod<T>()
The generic type T is lost when importing.
-
It's added as a tagged value to the method.
Simon
-
Write a very simple class like:
public class MyClass {
public void MyMethod() { }
public void MyMethod<T>() { }
}
and reverse engineering to the model.
The two methods look no difference and I cannot find any "tag value".
-
Open the tagged values window. (View | Other Windows | Tagged Values)
Click on your generic method.
It will list a tagged value. "generic" = "<T>".
Simon