A few easy VS 2005 questions

  • Thread starter Thread starter Jules Winfield
  • Start date Start date
J

Jules Winfield

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
 
For the last item, couldn't you just say:

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

and that would be it?
 
Bruce Wood said:
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
 
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 said:
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
 
However, that does not mean you cannot report the bugs so they will be fixed
in a service pack.


Kevin Spencer said:
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 said:
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
 
Good point, Wayne.

--
HTH,

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

Wayne Brantley said:
However, that does not mean you cannot report the bugs so they will be
fixed in a service pack.


Kevin Spencer said:
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 said:
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
 
Wayne said:
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...
 
Peter Franks said:
Hopefully there /will/ be service packs. VS03 had none, and sorely needed
them...

Hear, hear. It's really poor how little support there's been. Hopefully
we'll see a new start with this version... I'm not holding my breath though.
Issues raised on the bugtracker have for a long time now simply been
"postponed till the next version" - but there's no indication of whether
that will be a service pack or a 4-year wait for another major version.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top