Dot Net Tips & Tricks , C# (C Sharp)Tips & Tricks

Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks

Sunday, August 24, 2008

Creating Simple Windows Forms Application using C#

›
1. Start Visual Studio. 2. Create a Windows Application called HelloWorld . 3. From the Toolbox , drag a Label control onto ...

Avoiding Temporary Strings in C# / Reduce Unnecessary Garbage Collection in C#

›
Appending strings to existing will produce garbage collection overhead for the program. Instead use Append method of StringBuilder class or ...

Nullable Variables in C#

›
A type is said to be nullable if it can be assigned a value or can be assigned null Nothing nullptr a null reference ( Nothing in Visual B...

The best overloaded Add method 'name for the collection initializer has some invalid arguments in ‘ToString’

›
The type of one argument in a method does not match the type that was passed when the class was instantiated. The best overloaded method mat...
1 comment:

Argument '1': cannot convert from 'System.Text.StringBuilder' to 'string'

›
Use ‘ToString’ to convert the StringBuilder to String // Appending String - using String Builder System.Text. Stri...

›

Use of unassigned local variable 'name'

›
The C# compiler does not allow the use of uninitialized variables. If the compiler detects the use of a variable that might not have been in...
1 comment:
‹
›
Home
View web version
Powered by Blogger.