Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: smartkid on August 06, 2005, 03:51:33 pm

Title: When will EA supports C# 2.0
Post by: smartkid on August 06, 2005, 03:51:33 pm
Currently, EA does not support generics in C#2.0
Title: Re: When will EA supports C# 2.0
Post by: Eve on August 07, 2005, 05:50:20 pm
What do you think it doesn't support?  Support for C# 2.0 was added in version 4.5.
Title: Re: When will EA supports C# 2.0
Post by: smartkid on August 07, 2005, 10:22:36 pm
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.
Title: Re: When will EA supports C# 2.0
Post by: Eve on August 08, 2005, 03:14:52 pm
It's added as a tagged value to the method.

Simon
Title: Re: When will EA supports C# 2.0
Post by: smartkid on August 08, 2005, 10:37:31 pm
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".
Title: Re: When will EA supports C# 2.0
Post by: Eve on August 09, 2005, 03:19:40 pm
Open the tagged values window. (View | Other Windows | Tagged Values)

Click on your generic method.

It will list a tagged value. "generic" = "<T>".

Simon