Forum Index - Topic Index How to use of Astah (Pro/SysML/GSN/Com) [Class diagram] Exporting generic type parameter to C# |
Flat | Previous Topic | Next Topic |
Poster | Thread |
---|---|
Thatar | Posted on: 2015/4/12 22:56 |
Just popping in Joined: 2015/4/4 From: Posts: 4 |
Re: [Class diagram] Exporting generic type parameter to C# Apologies for the late reply.
Do you mean C# source code? An example would be: ---------------------- ---------------------- class MyClass { public Func<int,int> MyFuncA; public Func<int,int,int> MyFuncB; } ---------------------- ---------------------- If you try to recreate this in Astah by making a C# project, adding a class, and adding these two attributes: it breaks on adding MyFuncB (of type Func<int,int>). It adds a question mark to the type parameters of MyFuncA. Screenshot: When you export it also adds this question mark to the source code. As you can see Astah does not support generic classes that have the same name but a different amount of generic parameters, even though they exist in C#. |
Flat | Previous Topic | Next Topic |
Subject | Poster | Date |
---|---|---|
[Class diagram] Exporting generic type parameter to C# | Thatar | 2015/4/4 19:49 |
Re: [Class diagram] Exporting generic type parameter to C# | webmaster | 2015/4/6 17:03 |
Re: [Class diagram] Exporting generic type parameter to C# | webmaster | 2015/4/7 11:52 |
Re: [Class diagram] Exporting generic type parameter to C# | Thatar | 2015/4/8 17:26 |
Re: [Class diagram] Exporting generic type parameter to C# | Thatar | 2015/4/8 18:31 |
Re: [Class diagram] Exporting generic type parameter to C# | webmaster | 2015/4/9 17:33 |
» Re: [Class diagram] Exporting generic type parameter to C# | Thatar | 2015/4/12 22:56 |
Re: [Class diagram] Exporting generic type parameter to C# | webmaster | 2015/4/14 18:08 |
Re: [Class diagram] Exporting generic type parameter to C# | midori | 2015/4/27 10:21 |