473,394 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

No code snippets built in yet for C# ASP.NET 2.0 beta?

I'm using VS.NET 2005 beta 2 and am excited about the idea of using code
snippets. This is a nice time saver. For example I need to read all text
from a file, and see that with a simple command VB.NET will do this for me
nicely.

However in order for this to work it must be in VB.NET, and all my code is
in C#. Are any of the built-in snippets available yet for C# users? Any
way around this?

For now I've created a utility class as my only VB.NET based class. Then I
use the snippet in there and return a string. So this is an extra step that
I'd rather avoid (as it starts to defeat the purposes of builtin snippets to
jump through these hoops) but all in all its still worth it for now I guess.

What do you guys think?

Steve
Nov 19 '05 #1
2 1600
Hi,

I think you are talking about the 'My' class available in VB.NET 2005. There
is a wrapper available for C# users at
http://www.idesign.net/idesign/Deskt...ndex=5&tabid=8
(Search for 'My for C# 2.0') by Juval Lowy. Check it out.

HTH

"Steve Franks" <pl****@postreplyhere.com> wrote in message
news:o9********************@comcast.com...
I'm using VS.NET 2005 beta 2 and am excited about the idea of using code
snippets. This is a nice time saver. For example I need to read all text
from a file, and see that with a simple command VB.NET will do this for me
nicely.

However in order for this to work it must be in VB.NET, and all my code is
in C#. Are any of the built-in snippets available yet for C# users? Any
way around this?

For now I've created a utility class as my only VB.NET based class. Then I
use the snippet in there and return a string. So this is an extra step that
I'd rather avoid (as it starts to defeat the purposes of builtin snippets to
jump through these hoops) but all in all its still worth it for now I guess.

What do you guys think?

Steve

Nov 19 '05 #2

With VS.NET, it was announced that developers would be able
to create and distribute their own customized code snippets.

That isn't implemented yet and when you try to search for snippets,
VS.NET just spins its wheels.

When that feature comes online, it should be a powerful tool.


Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
===========================

"Siva M" <sh******@online.excite.com> wrote in message
news:OA**************@TK2MSFTNGP10.phx.gbl...
Hi,

I think you are talking about the 'My' class available in VB.NET 2005. There
is a wrapper available for C# users at
http://www.idesign.net/idesign/Deskt...ndex=5&tabid=8
(Search for 'My for C# 2.0') by Juval Lowy. Check it out.

HTH

"Steve Franks" <pl****@postreplyhere.com> wrote in message
news:o9********************@comcast.com...
I'm using VS.NET 2005 beta 2 and am excited about the idea of using code
snippets. This is a nice time saver. For example I need to read all text
from a file, and see that with a simple command VB.NET will do this for me
nicely.

However in order for this to work it must be in VB.NET, and all my code is
in C#. Are any of the built-in snippets available yet for C# users? Any
way around this?

For now I've created a utility class as my only VB.NET based class. Then I
use the snippet in there and return a string. So this is an extra step that
I'd rather avoid (as it starts to defeat the purposes of builtin snippets to
jump through these hoops) but all in all its still worth it for now I guess.

What do you guys think?

Steve

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mario T. Lanza | last post by:
Greetings, I don't know about you guys but on many occasions I've asked myself whether or not someone else has solved a particular programming issue -- whether or not they developed a clever...
0
by: ras | last post by:
Snippets are in the tools menu however in a form if I right click there is no mention of snippets. Is there something that needs to be done to enable snippets?
18
by: Joe Fallon | last post by:
I have some complex logic which is fairly simply to build up into a string. I needed a way to Eval this string and return a Boolean result. This code works fine to achieve that goal. My...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
245
by: Vortex Soft | last post by:
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant
13
by: frk.won | last post by:
I am interested in learning how to use the VS 2005 code snippets. However, I wish to know what are the best ways to source control the code snippets? Are there any source safe/subversion...
2
by: Wikicodia Admin | last post by:
Dears, Wikicodia is a wiki based project for sharing code snippets. We're collecting large number of code snippets for all code-based programming languages, scripts, shells and consoles. We wish...
3
by: darrel | last post by:
I often want to test a simple snippet of ASP.net code. Something usually less than a full function such as a quick if/then loop or math function. To do that, I usually create a new page, put my...
4
NeoPa
by: NeoPa | last post by:
Introduction: Macro Security Levels in MS Office applications are recommended to be set to High. This stops any VBA code associated with a project from running, unless it is signed (with a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.