List Info

Thread: Type declarations in ide....




Type declarations in ide....
user name
2006-10-17 12:25:16
You can use aliases just like an usual import:

using FooBar =
Foo<Bar<Foo<Bar>,Foo<Foo>>>;

Sébastien

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNETDISCUSS.DEVELOP.COM] On Behalf Of Mark
Nicholls
Sent: Tuesday, October 17, 2006 7:59 PM
To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Type declarations in ide....

A slightly bizarre question....

I've got some generic methods that return generic types, the
problem is that
sometimes the types get very large...e.h.


Foo<Foo<Bar<Foo<Bar>,Foo<Foo>>>&g
t; x =
a.GetFoo<Foo<Bar<Foo<Bar>,Foo<Foo>>&
gt;>
(b);

is there a way of getting the IDE to auto generate the type
declaration, so
I don't spend hours foo'ing and bar'ing.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )