There is a common and simple requirement in windows applications to Open a new form(say Form2) when clicked a button in Form1 and also close Form1 at the same time. Table of ContentsOn Button Click Open Form 2 and Close Form 11) Close Form1 and Show Form2 – C#2) Use Application.Run for each form in Main() […]
Add XML element without namespace attribute – C#,VB.NET
This post explains how to create XML element without namespace attribute in C#. This post also is answer to following topics, How to prevent blank xmlns attributes in output from .NET’s XmlDocument? Avoid unwanted (empty) xmlns attribute added by appendChild Consider an XML file which is having one or more Namespace URI (xmlns) defined. When you add […]
Static Classes in C# and Static Class Members In C#
As a programmer, you may have used Static Classes and Static Class Members in C# or other programming languages. Static member variables and static functions of a normal class can be accessed without creating an instance of the class. But the respective classes are not required to be static. See below a sample with static […]
7 Code Commenting Best Practices C# .NET
What is the relevance of Code commenting? Is code commenting a waste of time or productivity killer? In this article, we point out the Importance of Code Commenting and Code Commenting Best Practices in C#. Code commenting has given lesser priority by the programmer most of the time. At times it is completely avoided and after review […]
Best Free Obfuscator To Protect .NET Assemblies | Best Free .Obfuscators for .Net code
Want to protect .NET code from reverse engineering? Obfuscation is one of the solutions.There are many free dotnet obfuscators available. This article lists out some best free obfuscator to protect .NET assemblies Table of Contents.NET ObfuscatorsFree .NET Obfuscator ToolsEazfuscator.NETObfuscar – The Open Source Obfuscation Tool for .NET AssembliesSharpObfuscatorSkater .NET Obfuscator Light EditionFxProtect Express EditionFrequently Asked Question on […]
Difference Between Static Class and Singleton Pattern in C#?
If you are looking the answer for the Difference between static class and singleton pattern, read this post.This also explains the advantages of singleton pattern over static class and when to use singleton and static class in c# A static class is a class with static member variables and methods. A singleton is a design pattern which makes available only a single object of that […]