Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Getting method return type namespace

$
0
0

Trying to generate a new code from existing methods but having problems with method return types. Some projects have entities with the same name. So after generating code i'm having "ambigious reference" error. 

Example: Entity User exists or may exist in several projects, so i need to add namespace information to all return types.

Before:

publicList<User>GetUsers(){}publicUserGetUser(){}

After generation what i want is:

List<MyProject.User>GetUsers(){}publicMyProject.UserGetUser(){}

Viewing all articles
Browse latest Browse all 1764

Trending Articles