Tag: C#.NET

Default Access Modifiers In C#.NET

In C#.NET everything (methods, variables, properties etc) are declared as private by default.

Posted in: C#.NET, Solutions

How To Encode Html String In C#.NET?

Example: using System; using System.Net; namespace Examples { class Program { static void Main(string[] args) { string htmlDecodeString = “<strong> This is strong tag </strong>”; Console.WriteLine(WebUtility.HtmlEncode(htmlDecodeString)); Console.ReadKey(); } } }

Posted in: C#.NET, Solutions

How To Decode Html Entities In C#.NET

Example: using System; using System.Net; namespace Examples { class Program { static void Main(string[] args) { string htmlEntity = “&lt;strong&gt; This is strong tag &lt;/strong&gt;”; Console.WriteLine(WebUtility.HtmlDecode(htmlEntity)); Console.ReadKey(); } } }

Posted in: C#.NET, Solutions

What Is Using Statement In C#

The using statement is used for creating a scope of an object’s reference variable. When that scope becomes end than that object reference variable is destroyed and the object is disposed and no longer in use. We can use using statement only with those classes who implements an IDisposable interface.

Posted in: C#.NET, Solutions

Difference Between Decimal And Double In C#

double and decimal data types both are used for storing frictional point values. double is used for calculations such as mathematical problems, value of earth gravity etc. decimal is used for monetary calculations such as money, accounting problems etc. The value of decimal is suffixed with m character. Character m indicates that it is a […]

Posted in: C#.NET, Solutions

Difference between struct and class in .NET?

Classes are reference types. Structs are value types. All reference types live in heap memory. All value types live in stack memory. Classes have unlimited features. Structs have limited features. Classes are used for large programs. Structs are used for small programs. Value types always contain values. Reference types can have null-reference, means some time […]

Posted in: C#.NET, Solutions

Email sending in .NET through Gmail

Use System.Net.Mail, not the deprecated System.Web.Mail in C#.

Posted in: ASP.NET, C#.NET, Solutions

What is the difference between String and string?

Difference between the following string and String. Example: string s = “Hello world!”; String S = “Hello world!”;

Posted in: C#.NET, Solutions
Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .