Category: C#

How to convert a string to enum in C#?

Below is a sample code snippet demonstrating how to convert a string Eg: “Blue” to Enum value . How to convert a string to enum in C#? using System; using System.Collections.Generic; using System.Data; using System.Linq; …

Popular C# profilers

Are you looking for C# profilers ? . In this blog post , we list out some of the popular C# profilers. Popular C# profilers CLR Profiler for .NET Framework 4 The CLR Profiler allows …

Break vs. continue in C#

Within a for loop or a while loop in C# , you can use break or continue keyword . What is the different between break and continue in C# ? break keyword will cause the …

How to Combine Urls in C# ?

There are times when you want to combine 2 website Urls together say with the subdomain . For example , assume the main Url is http://Ginktage.com and it needs to have the dotnettips/default.html , how …

How to Send an Email via SMTP in C# ?

If you need to send emails via SMTP programmatically using C# , you can use the the SmtpClient class that is defined in the System.Net.Mail namespace. The MailMessage allows the developers to specify the necessary …