C# tag posts

EasyTimer - JavaScript style setTimeout and setInterval in C#

how to implement and use JavaScript style setTimeout and setInterval in C#

Top 5 new features of Visual Studio 2010 and .NET 4

Discusses the new features of Visual Studio 2010 and .NET 4

Using DebuggerBrowsable Attribute for a better view in debugger window

Describe how we can DebuggerBrowsable attribute for customizing the debugger window view.

Top 5 Small but Must have Extension Methods

Covering a few very basic and use extension methods

Random Sort a List Using LINQ

How to random Sort a List by using simple LINQ technique

Maintaining Dirty and New state of objects

Explains how to manage Dirty, Clean, New and Old state of business objects in you application

Avoiding Event != null Check

Describes about how we can eliminate the repeating check of Event != null every where in code before raising any event

Are You Throwing Exceptions Correctly?

Discuss practices to throw exceptions to intact the exception stack trace

Specifying Access Modifier for Getter and Setter in Property

Explains about how we can have different access modifier for getter and setter in a property

Using Thread Pool for Multi-Threading application

How to use thread pool for multithreading in a .net application

Convert Image to Base64 String and Base64 String to Image

Learn how to convert Image to Base64 String and Base64 String to Image. (Online Converter Image to Base64)

Enum coversion operations (int to enum, enum to int, string to enum, enum to string)

how to to various enum coversions like int to enum, enum to int, string to enum, enum to string

Using Invoke to access object in a windows forms/controls thread

How to use Invoke to handle cross thread calls to windows forms or controls

How to crawl a web page/file in a .net application

Explains how we can crawl a web page or file using a virtual path and store the response locally

Add attacments while sending email in .NET

Describes how to include attachemt with MailMessage in .net while sending emails

How to get current assembly version

Extracting the version of currently executing assembly

How to Html Encode a string in .NET

How to html encode a string in .net for displaying on a page

Add parameterized queries in MySql (OleDb)

Explains how to add parameters in odbc queries