Browse by Tags

All Tags » C# (RSS)

My Faq on "hashtable lookups for struct types" is published at http://blogs.msdn.com/CSharpFaq

Check out http://blogs.msdn.com/csharpfaq/archive/2006/03/20/556192.aspx for a FAQ on Hashtable lookup for value types.

My articles on "Anonymous types" is up

Check out http://www.developer.com/net/csharp/article.php/3589916 for my article on " Anonymous Types ", This cool new feature coming in C# 3.0 is surely going to go places. Codeguru also contains the same article at http://www.codeguru.com/csharp/csharp...
Posted by Vipul Patel | with no comments

Guidelines on clean up code

Many a times, we use the catch block inside the try catch block for our clean up code. Something like try { // Do something } catch { // work failed, clean up code here } Rather than the above approach of using the catch block, it would be nicer to use...
Posted by Vipul Patel | with no comments

When is a static constructor in C# called?

Confused about static constructors in C#, Read this post......
Posted by Vipul Patel | 1 comment(s)
Filed under:

Visual Studio Service Pack WebSite

Visual Studio.NET Service Packs are due this year, but their site is up already (The site clearly mentions it is still in process) http://msdn.microsoft.com/vstudio/support/servicing/default.aspx Visual Studio 2003 Service Pack 1 ships Q2, 2006 Visual...
Posted by Vipul Patel | with no comments

.NET Tip - Getting logged in user name in ASP.NET web application

Frequently we desire to autopopulate some fields on our web form with the current logged in username and domain. How to get that information? Well, User.Identity.Name comes to the rescue. Set the text property of the field to User.Identity.Name and it...

Visual Studio Tip of the day - Refactoring - Extracting method

You notice that you have a chuck of code which could easily be transitioned to a new function. How tdo you do that? Again, Visual Studio Refactoring menu comes to the rescue. Suppose you have the following code in your function public void Myfunc() {...
Posted by Vipul Patel | with no comments
Filed under: , ,

How to: Determining programmatically if DLL is registered

Here is a C# code snippet to determine if a particular DLL is registered or not. [DllImport("kernel32")] public extern static int LoadLibrary( string lpLibFileName); [DllImport("kernel32")] public extern static bool FreeLibrary( int hLibModule); public...
Posted by Vipul Patel | with no comments
Filed under: , , ,

Visual Studio 2005 - A Guided Tour

Want to learn more about Visual Studio 2005 . MSDN magazine folks have come up with a new issue dedicated solely to the new IDE. Check it out online at http://msdn.microsoft.com/msdnmag/issues/06/00/default.aspx
Posted by Vipul Patel | with no comments
Filed under: , , ,

Enterprise Library for .NET Framework 2.0 released

Wohoo! Enterprise library for .NET Framework 2.0 has just been released. More details at http://msdn.microsoft.com/library/?url=/library/en-us/dnpag2/html/EntLib2.asp Direct download link: http://www.microsoft.com/downloads/details.aspx?FamilyId=5A14E870...
Posted by Vipul Patel | with no comments
Filed under: , ,

FYI: System.Web.Mail is deprecated use System.Net.Mail

While we are on the topic of System.Web.Mail , it is important to note a new namespace in version 2.0 of the .NET Framework. There is a brand new namespace for sending mail via managed code, it is called System.Net.Mail . Have no fear, System.Web.Mail...
Posted by Vipul Patel | with no comments

Absolute Beginner's Video Series to Visual Studio 2005 Express Editions

Do you have some students who want to learn Visual Basic .NET or C# on their own? Or perhaps you want to learn them as part of your own professional development. Well if so, Microsoft has a free series of lessons for absolute beginners. They look pretty...
Posted by Vipul Patel | with no comments

Why Upgrade to Version 2.0 of the .Net Compact Framework?

Steven Pratschner, Program Manager, .NET Compact Framework, lists down reasons why one should upgrade ot the latest version of the .NET compact framework. Highlights: Applications run faster Developers are more productive Developers are more productive...
Posted by Vipul Patel | with no comments
Filed under: ,

Developer Blogs to watch out for

With a plethora of blogs floating on the internet, it is hard to find the blogs which make a difference . Below is a collection of blogs of authors whose books we have read and blogs of people who make the technology. I spent some time to find out such...
Posted by Vipul Patel | with no comments

Express Editions of Visual Studio and SQL Server for free*

Yes, for a limited time (1 year), Visual Studio express editions are going to be free . SQL Server Express editions will be free always. More details at http://msdn.microsoft.com/vstudio/express/ Start downloading folks. Clarifications on the free offer...

.NET Compact Framework v2 is ready for download

.NET Compact Framework v2 is now ready and available for download ! As of today we have the English end-user download and the Platform Builder QFE available. Remaining language downloads will be released in the new few weeks as we get the localized download...
Posted by Vipul Patel | with no comments
Filed under: , , ,

Using intrinsic memory management with C#

Consider the following code snippet // Declare the reader. SqlDataReader reader = null; // Use the reader here. try { // Create the reader. reader = new SqlDataReader(...); // Use the reader. } catch { } finally { // Check the reader for null. If it is...
Posted by Vipul Patel | with no comments
Filed under: , ,

How many threads does a typical managed process have when it just starts to run?

Source: Yun Jin's blog at http://blogs.msdn.com/yunjin Answer: regardless how many threads the user creates, there are at least 3 threads for a common managed process after CLR starts up: a main thread which starts CLR and run user's Main method, CLR...
Posted by Vipul Patel | with no comments
Filed under: , ,

Power Collections for .NET

Did you feel that a powerful Collection library for public domain was missing? Well, its here now... Check out http://www.wintellect.com/powercollections/ A brief description: With .NET 2.0 comes the ability to implement what has been known in C++ as...
Posted by Vipul Patel | with no comments
Filed under: , , ,

VS 2005 all set to launch

Visual Studiuo 2005 is all set to launch in the week of Nov 7, 2005. This was announced in the keynote address at TechEd 2005. Aoccrding to official reports on PressPass site of Microsoft, On the second day of Microsoft ® Tech•Ed 2005, Microsoft...
Posted by Vipul Patel | 2 comment(s)
Filed under: , ,
More Posts Next page »