469,926 Members | 2,361 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

A few easy VS 2005 questions

I'm loving VS 2005. These are my questions and comments so far:

BUG: Autoformatting
================
I've turned off virtually all autoformatting, but there is still one place
where it rears it's head even after it's been turned off. Reproduce the
problem as follows:

1) Turn off all autoformatting.

2) Type:

public class Startup{
}

3) Immediately after the opening bracket, insert a line and type "#region"

Notice that VS.NET inserts an additional space before the open paren. It's
easy to manually go up and eliminate the rogue space but since it appears to
be a bug, I wanted to point it out.

BUG (?): Tab Order
==============
As you know, when new code pages are opened, they are opened in their own
tabs -- but for some reason, each new tab that is added appears as the
LEFT-MOST tab in the tab series. It seems like new pages should be appended
to the right. That's the way VS.NET 2003 [and every other tab-based app I've
used works]. Adding the tabs on the left is quite counterintuitive. If this
isn't a bug and was done intentionally, is there a way to revert back to the
traditional behavior via a Tools/Options setting?

QUESTION: Generics
================
Does C# support the concept of a typedef for generics. For example, if I
find myself constructing a lot of List<Bonehead> objects, is there a way to
call this type BoneheadList, for example?

Overall, great job on VS 2005!

cuz my name is,

Jules


Nov 17 '05 #1
6 1045
For the last item, couldn't you just say:

public class BoneheadList : List<Bonehead>
{
... provide relevant constructors ...
}

and that would be it?

Nov 17 '05 #2

"Bruce Wood" <br*******@canada.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
For the last item, couldn't you just say:

public class BoneheadList : List<Bonehead>
{
... provide relevant constructors ...
}

You can also use a namespace alias:

using BoneheadList = List<BoneHead>;

which only affects the current namespace or file.

David
Nov 17 '05 #3
Hi Jules,

As far as your "bug reports" are concerned, you're a day late and a dollar
short. Actually, you're about a year late. That's how long you've had to get
your experiences responded to. So, enjoy.
Does C# support the concept of a typedef for generics. For example, if I
find myself constructing a lot of List<Bonehead> objects, is there a way
to call this type BoneheadList, for example?
Sure. Just create a class that inherits List<BoneHead>.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"Jules Winfield" <gh****@englewood.com> wrote in message
news:yo********************@giganews.com... I'm loving VS 2005. These are my questions and comments so far:

BUG: Autoformatting
================
I've turned off virtually all autoformatting, but there is still one place
where it rears it's head even after it's been turned off. Reproduce the
problem as follows:

1) Turn off all autoformatting.

2) Type:

public class Startup{
}

3) Immediately after the opening bracket, insert a line and type "#region"

Notice that VS.NET inserts an additional space before the open paren. It's
easy to manually go up and eliminate the rogue space but since it appears
to be a bug, I wanted to point it out.

BUG (?): Tab Order
==============
As you know, when new code pages are opened, they are opened in their own
tabs -- but for some reason, each new tab that is added appears as the
LEFT-MOST tab in the tab series. It seems like new pages should be
appended to the right. That's the way VS.NET 2003 [and every other
tab-based app I've used works]. Adding the tabs on the left is quite
counterintuitive. If this isn't a bug and was done intentionally, is there
a way to revert back to the traditional behavior via a Tools/Options
setting?

QUESTION: Generics
================
Does C# support the concept of a typedef for generics. For example, if I
find myself constructing a lot of List<Bonehead> objects, is there a way
to call this type BoneheadList, for example?

Overall, great job on VS 2005!

cuz my name is,

Jules

Nov 17 '05 #4
However, that does not mean you cannot report the bugs so they will be fixed
in a service pack.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Jules,

As far as your "bug reports" are concerned, you're a day late and a dollar
short. Actually, you're about a year late. That's how long you've had to
get your experiences responded to. So, enjoy.
Does C# support the concept of a typedef for generics. For example, if I
find myself constructing a lot of List<Bonehead> objects, is there a way
to call this type BoneheadList, for example?


Sure. Just create a class that inherits List<BoneHead>.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.

"Jules Winfield" <gh****@englewood.com> wrote in message
news:yo********************@giganews.com...
I'm loving VS 2005. These are my questions and comments so far:

BUG: Autoformatting
================
I've turned off virtually all autoformatting, but there is still one
place where it rears it's head even after it's been turned off. Reproduce
the problem as follows:

1) Turn off all autoformatting.

2) Type:

public class Startup{
}

3) Immediately after the opening bracket, insert a line and type
"#region"

Notice that VS.NET inserts an additional space before the open paren.
It's easy to manually go up and eliminate the rogue space but since it
appears to be a bug, I wanted to point it out.

BUG (?): Tab Order
==============
As you know, when new code pages are opened, they are opened in their own
tabs -- but for some reason, each new tab that is added appears as the
LEFT-MOST tab in the tab series. It seems like new pages should be
appended to the right. That's the way VS.NET 2003 [and every other
tab-based app I've used works]. Adding the tabs on the left is quite
counterintuitive. If this isn't a bug and was done intentionally, is
there a way to revert back to the traditional behavior via a
Tools/Options setting?

QUESTION: Generics
================
Does C# support the concept of a typedef for generics. For example, if I
find myself constructing a lot of List<Bonehead> objects, is there a way
to call this type BoneheadList, for example?

Overall, great job on VS 2005!

cuz my name is,

Jules


Nov 17 '05 #5
Good point, Wayne.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"Wayne Brantley" <Wa***********@noemail.nospam> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
However, that does not mean you cannot report the bugs so they will be
fixed in a service pack.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Jules,

As far as your "bug reports" are concerned, you're a day late and a
dollar short. Actually, you're about a year late. That's how long you've
had to get your experiences responded to. So, enjoy.
Does C# support the concept of a typedef for generics. For example, if I
find myself constructing a lot of List<Bonehead> objects, is there a way
to call this type BoneheadList, for example?


Sure. Just create a class that inherits List<BoneHead>.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.

"Jules Winfield" <gh****@englewood.com> wrote in message
news:yo********************@giganews.com...
I'm loving VS 2005. These are my questions and comments so far:

BUG: Autoformatting
================
I've turned off virtually all autoformatting, but there is still one
place where it rears it's head even after it's been turned off.
Reproduce the problem as follows:

1) Turn off all autoformatting.

2) Type:

public class Startup{
}

3) Immediately after the opening bracket, insert a line and type
"#region"

Notice that VS.NET inserts an additional space before the open paren.
It's easy to manually go up and eliminate the rogue space but since it
appears to be a bug, I wanted to point it out.

BUG (?): Tab Order
==============
As you know, when new code pages are opened, they are opened in their
own tabs -- but for some reason, each new tab that is added appears as
the LEFT-MOST tab in the tab series. It seems like new pages should be
appended to the right. That's the way VS.NET 2003 [and every other
tab-based app I've used works]. Adding the tabs on the left is quite
counterintuitive. If this isn't a bug and was done intentionally, is
there a way to revert back to the traditional behavior via a
Tools/Options setting?

QUESTION: Generics
================
Does C# support the concept of a typedef for generics. For example, if I
find myself constructing a lot of List<Bonehead> objects, is there a way
to call this type BoneheadList, for example?

Overall, great job on VS 2005!

cuz my name is,

Jules



Nov 17 '05 #6
Wayne Brantley wrote:
However, that does not mean you cannot report the bugs so they will be fixed
in a service pack.


Hopefully there /will/ be service packs. VS03 had none, and sorely
needed them...
Nov 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Eric Sassaman [MS] | last post: by
10 posts views Thread by patang | last post: by
1 post views Thread by Bob | last post: by
4 posts views Thread by Goran Djuranovic | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.