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:[EMAIL PROTECTED] On Behalf Of Mark Nicholls
Sent: Tuesday, October 17, 2006 7:59 PM
To: ADVANCED-DOTNET@DISCUSS.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>>>> x = a.GetFoo<Foo<Bar<Foo<Bar>,Foo<Foo>>>>
(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

Reply via email to