473,804 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 counterintuitiv e. 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 1130
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*******@cana da.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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****@englewo od.com> wrote in message
news:yo******** ************@gi ganews.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
counterintuitiv e. 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***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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****@englewo od.com> wrote in message
news:yo******** ************@gi ganews.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
counterintuitiv e. 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******** **********@TK2M SFTNGP15.phx.gb l...
However, that does not mean you cannot report the bugs so they will be
fixed in a service pack.
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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****@englewo od.com> wrote in message
news:yo******** ************@gi ganews.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
counterintuitiv e. 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
312
by: Nick Dreyer | last post by:
In VB.NET I would like to not have to create property get/set procedures for every class variable I want to expose to Excel VBA projects in COM builds. Can anyone tell me if that is possible, or refer me to some documents that will make me understand why this apparent limitation of VB.NET COM builds is acceptable, i.e. why in "good" object code programs I should expect to never have to create large numbers of public class variables that...
1
1689
by: Eric Sassaman [MS] | last post by:
Online Chat: Visual C++ 2005 Beta Join the Visual C++ team to discuss your questions and comments on the Beta release of Visual C++ 2005. Whether you are a first-time user of the Visual C++ Express Edition Beta (http://lab.msdn.microsoft.com/express/visualc) or an experienced developer exploring the full Visual Studio 2005 suite, we want to answer your questions to provide you with a smooth development experience. So please bring your...
10
1182
by: patang | last post by:
Question 1 I have two forms, let say Form1 and Form2. There is datetimepicker control on Form2. In the Load Event of Form2 I have set the default value of datetimepicker control to NOW. So as expected when I open the form the default value is set to today's date. Now I sometimes also call Form2 from Form1. Ok now here is my problem. Actually when I call Form2 from within Form1 I want to set the set the value of datetimepicker control to...
1
1133
by: Bob | last post by:
My team is about to pick a language/platform to develop a brand new WEB application. Seeing all the hype on the new Visual Studio 2005, I've suggested that we go with this technology. As such, I have some questions concerning the various flavors of Visual Studio 2005. Suppose I have 4 developers: - one developer uses Visual Studio 2005 Standard Edition - one developer uses Visual Studio 2005 Professional Edition - two developers use...
4
1851
by: Learner | last post by:
we can download the Management Studio Express for free from MS website. I did the same thing on my personal laptop. But can we develop applications using free downloaded Management Studio and deploy later on with the free stuff at work? Or else may i want to get it off Sql server 2005 that we got when we bought the software.
1
1282
by: samadams_2006 | last post by:
Hello, I have the following scenario and I was hoping that someone would help me determine the best way to approach this situation in Visual Studio 2005: 1) I have questions in a database which I would like to display on a form. 2) Along with the questions, I would like to display a series of radio controls for the user to supply their input.
4
2652
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. - Why is this happening? - Can I disable automatic declaration and have everything be declared manually? - Any other options to fix this? Thanks in advance. Goran Djuranovic
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.