C# Corner

Resources  
  • Constructor and Destructors in C#Oct 10, 2001. This detailed article talks about how constructors and destructors work in C# and how to use them in your applications.
  • Understanding Properties in C#Oct 15, 2001. In C#, properties are nothing but natural extension of data fields. They are usually known as 'smart fields' in C# community.
  • .NET Static Variables : Better than Application!Feb 22, 2002. In traditional ASP, we always had the Application object to store application-wide variables in.
  • Customized Windows Forms Look and FeelMay 28, 2002. I have encountered instances when I needed a high level look and feel of Windows Forms and controls.
  • Hex Colors in C#Sep 05, 2002. Currently I am developing a shareware application for generating image galleries for the web. There is a template engine built in that allows the user to specify colors as hexadecimal values, plus many other features.
  • Static Constructor in C# and their Usages.Sep 09, 2002. Static constructor is used to initialize static data members as soon as the class is referenced first time, whereas an instance constructor is used to create an instance of that class with <new> keyword.
  • AddressParserFeb 06, 2003. The AddressParser class provides 2 static methods - ParseIpAddress and ParseMacAddress.
  • How to use C# ConstructorsApr 08, 2003. This article gives a brief introduction, features of constructors their usage and also an idea of how to use C# constructors.
  • Constructors In C#May 06, 2004. This article explains constructors in C# with sample examples including constructor overloading, static constructors, and constructor chaining.
  • Using the Tablet PC as a Flashing Restaurant Menu in C# and .NETJun 08, 2004. This is a simple application written for a restaurant using Tablet PC that allows you to list such things as lunch specials and have the colors on the board change randomly to produce an interesting flashing sign effect.
  • Coloring the Console in C# Oct 25, 2004. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
  • New Features of C#2.0 - Static ClassesApr 13, 2005. Static classes are used when a class provides functionality that is not specific to any unique instance.
  • What is new in C# 2.0?May 30, 2005. In this article, I discuss new features added to C# 2.0.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IVJan 30, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • New features in C# 2.0Feb 18, 2006. In this article, I will learn about and use the new features in C# 2.0 added by the Microsoft designers, such as generics, anonymous methods, partial types, static classes, nullable types, and limiting access to properties.
  • Using static variable and Activated Event for Building "Home" Button of Windows applicationApr 10, 2006. In this tutorial I will share experience how , just with the help of a few clicks and a few lines of code , to build a windows application with "Home" button, that allows to return to "Home" form (in fact to close all opened forms by one click) . The examples are written using C#.
  • OleHelper for Microsoft Access (.MDB) in ASP.NET 2.0Apr 18, 2007. This article is very much similar to the Microsoft Data Access Application Block, provides static methods in a "sealed class OleHelper" where I have Execute Dataset, ExecuteNonQuery & PrepareCommand to work with Microsoft Access database.
  • Managed Static Code Analysis in VSTS: Part ISep 24, 2007. This article attempts to explain the concept of static code analysis and tools that can be used to realize it with a focus on managed code analysis.
  • Fade Out a Form in C#Oct 30, 2007. This article describes a simple approach to fading out a form.
  • Dynamic and static Rectangle in WPFAug 29, 2008. This article shows how to create dynamic and static rectangle in WPF and XAML with various drawing effects.
  • Constructor vs Static ConstructorOct 23, 2008. This article explains you the basic difference between the constructor and static constructor via example.
  • What are Properties in C-sharp and how to use them?May 19, 2009. In this article I will explain the property in C# along with practical demonstration which will help you to understand it in a simple way.
  • Static in C#May 20, 2009. In this article I m highlighting something about static. It's a simple article to make beginners understand in easy and fun way.
  • Resources in WPFAug 06, 2009. This article explains basics of resources in WPF.
  • Using Static Resource in Silverlight 3 ApplicationAug 18, 2009. This article shows how to use static resource in Silverlight 3.
  • Singleton Pattern Unleashed in C#Oct 03, 2009.
  • Static class in C#Nov 29, 2009. This article will discuss about static class in C#. Different feature of static class and different way of creating static class also will be discussed.
  • GrayScale Image in WPFFeb 10, 2010. The PixelFormats class is used to represent image pixel formats. The class has about 2 dozens of static properties representing various pixel formsts such as BlackWhite, Gray16, Gray32Float, Gray8, Rgba64 and so on.
  • Static Resources in Silverlight class libraryApr 26, 2010. In this article we will see how to have styles in Silverlight class library.
  • Application Startup and Executable PathApr 26, 2010. The code snippet in this article demonstrates how to use Application class static properties to get Windows Forms application startup path, executable path and user data path using C#.
  • How to Use Resources in WPFJun 09, 2010. This article will show how to use resources in WPF.
  • Static class in C#Jul 28, 2010. In this article you will learn how to use Static classes in c#.
  • Static Event in C#Sep 23, 2010. There might be times when you'll want your event to perform same actions for all objects. In this article we will see how to do that.
  • Using StaticResources in WPFOct 26, 2010. Here I describe Resource markup extensions.
  • How to Pass Data Between the Forms Using the Static ConceptNov 20, 2010. This article shows how to pass data between the forms using the static concept.
  • Importance of TimeZoneInfo class in ASP.NETFeb 03, 2011. The TimeZoneInfo class represents any time zone in the world. It contains a set of static methods/properties that allows us to get the current time zone information, convert datetime values between time zones etc.
  • Rules for creating C# Static ClassesFeb 23, 2011. Here I show some rules to create a static class.
  • Understanding Static & Dynamic PolymorphismMar 02, 2011. Understanding Static & Dynamic Polymorphism with Examples.
  • Understanding C# Constructors and it's typeMar 03, 2011. In other words a constructor is a class default method that gets automatically executed whenever a class's object is created or whenever the class is initialized.
  • PIN Extension Method Using C#Jun 07, 2011. An extension method is a special kind of static method that allows you to add new methods to existing types without creating derived types. PIN stands for the three extension methods PreviousItem, IndexOfCurrentItem and NextItem.
  • Static and Non-Static Methods in C#Jun 20, 2011. In this quick article you will take a look at static and non-static methods in C#.
  • Static and Non-Static Fields in C#Jun 20, 2011. In this quick article you will take a look at static and non-static fields in C#.
  • Chart Web Part in SharePoint 2010Jun 24, 2011. Chart web part is a new feature in SharePoint 2010 which is used to create static and dynamic charts. In this article we will be seeing how to create an out-of-box chart web part in SharePoint 2010.
  • Static Method in C#Jul 20, 2011. In this quick article you will take a look at static methods in C#.
  • Polymorphism in JavaAug 05, 2011. Polymorphism is discussed in this article. You'll see, how to achieve polymorphism in Java. Method overloading and overriding are discussed as well as.
  • ASP.NET MVC, WCF, ASP.NET Webforms, and JQueryAug 10, 2011. The sole purpose of any API within the applications I build is to deal with business layer logic and the data related to it. Ideally speaking I would want my API to return structured data which is easily transformed into a format for the client application using the API (e.g. JSON). And all my UI for web applications must be handled with client-side scripts. Client side includes both static HTML, CSS and JavaScript, and in this instance I specifically refer to JavaScript and the handling of my API’s data using JSON, for which I use jQuery.
  • Support for Lazy Initialization in .Net 4.0Sep 05, 2011. The Lazy initialization can be seen in designing the singleton pattern where we can have static readonly property in a nested class that initializes the singleton object in a Lazy way.
  • C# Static ConstructorOct 03, 2011. In this article I will be explaining Static Constructors with the help of small demo.
  • Working With Functions in Expression LanguageDec 04, 2011. The JSP expression language allows you to define a function that can be invoked in an expression. Functions are defined using the same mechanisms as custom tags. The EL Function are public static methods in java classes.
  • Static Text in LightSwitch Dec 14, 2011. In this article you you will see how to create static text in LightSwitch.
  • Work with Static Methods and Variables in PHPDec 19, 2011. In this article we are going to understand the concept of static methods and variables. Methods and variables can also be used and accessed if they are defined as static in a class.
  • Add Static Image on the Home Screen in Visual Studio LightSwitchDec 19, 2011. In this article you will see how to set a static image on the home screen in a Visual Studio LightSwitch application.
  • Create Cache Manifest Using HTML 5 ToolsJan 09, 2012. This is a simple application showing how to create an application cache using he HTML 5 tools. The application cache is used to store the static resources. The application cache is just like a browser used to run the offline application and this article also helps to show how to create a manifest file in your application.
  • Singleton Design PatternFeb 27, 2012. A design pattern is a general repeatable solution to a common problem that occurs in the software industry. A design pattern is not completely a form of code, but it is a template for how to solve the problem and also can be used in many other problems.
  • Dropdown List in PHPMar 03, 2012. In this article you will see how to create a static and dynamic drop down list in PHP.
  • Creating an Editable Table in JavaApr 04, 2012. In this article we are going to making a table. This table is not a static table; its editable.
  • Create a Theme in Windows Phone 7Apr 14, 2012. In this article we are showing the use of the themes in Windows Phone 7. Now in this article we have change a theme throw in property as well as also perform this functionality according to throw a static resources.
  • Some Useful and Important Concepts of C#May 29, 2012. In this article I have explained some important concepts related to the C# language such as Implicit & Explicit type conversion, Boxing and UnBoxing of data types, static and nonstatic methods and the technique of creating automatic methods i.e. automatic method creation.
  • Singleton VS. Static ClassesAug 06, 2012. key word
  • How to Create and Implement Static Library in VC++Aug 06, 2012. In this article I am going to explain how to create and implement a static library in VC++.
  • Static Cursor in SQL Server 2012Oct 20, 2012. In this article, you will see how to use a Static Cursor in SQL Server.
  • Understanding Properties in VB.NETNov 09, 2012. In VB.NET, properties are nothing but natural extension of data fields. They are usually known as ‘smart fields’ in VB.NET community. We know that data encapsulation and hiding are the two fundamental characteristics of any object oriented programming language.
  • Event Handling in VB.NETNov 10, 2012. Events in the .NET Framework are based on the delegate model. Delegates are type-safe Function Pointers or Callbacks. A delegate can reference both static and instance methods.
  • Static Method in TypeScriptNov 21, 2012. In this article I am going to explain static methods in TypeScript.
  • Constructors and Its Types in C# With ExamplesNov 29, 2012. In this article I have explained Constructors and their types with examples.
  • Static Table Using StoryBoard in iPhoneDec 01, 2012. In this article I will explain how to create a static table using a storyboard in iPhone.
  • How to Assign Static IP Address in Windows 8Dec 06, 2012. In this article we are explaining how to assign a static IP address in Windows 8.
  • Cursor in SQL ServerDec 06, 2012. In this article I described Static Cursor, Dynamic Cursor and Keyset-Drivin Cursor.
  • Assign a Static Drive Letter to a USB Drive in Windows 8Jan 04, 2013. In this article we explain how to assign a static drive letter to a USB drive in Windows 8.
  • The Basics of Creating a Static Library Using Visual C++Jan 05, 2013. Explains the basics of creating a static library, with explanations, and how to use a static library.
  • Static Variables, Static Methods and Objects in C#Jan 11, 2013. In this article you will learn what is and how to work with static variables, static methods and objects in C#.
  • Introduction to Types in TypeScriptJan 14, 2013. TypeScript, an open source language, is a typed superset of JavaScript that compiles to plain JavaScript. It adds optional static typing and class-based object oriented programming to the language.
  • Static List View in Windows Store AppJan 14, 2013. In this article I describe how to create a Windows Store App for a Static List View using JavaScript.
  • Static Variable in PHPMar 04, 2013. In this article I will explain static variables in PHP.
  • Difference Between Const, ReadOnly and Static ReadOnly in C#Mar 26, 2013. These are very common keywords and are quite confusing. So today we will discuss these keywords and try to understand them.
  • Understanding Basic OOP Concepts in PHP: Part 2Apr 09, 2013. In this article I explain how to declare and use properties in PHP.
  • Understanding Basic OOP Concepts in PHP: Part 3Apr 10, 2013. In this article I will explain how to create and use methods in PHP.
  • Changing Static Themes to Dynamic Themes Using C# With SQL ServerApr 21, 2013. In this article you will learn how to Change Static themes to Dynamic themes using C Sharp with SQL Server.
  • Introduction To Static Keyword In JavaApr 30, 2013. In this article we discuss static keyword in Java.
  • Introduction To Nested Class In JavaMay 08, 2013. In this article we discuss nested classes (inner classes) in Java.
  • Few Ways to Prevent Instantiation of ClassMay 09, 2013. Let’s go with very interesting facts about oops. There are few ways Stop Instantiation of class.
  • Adding a Static Text to the Screen in LightSwitch Using Visual Studio 2012May 21, 2013. In this article I describe how to add static text to a screen in LightSwitch Visual Studio 2012
  • Polymorphism in .NETJun 05, 2013. In this article you will learn about Polymorphism in detail.
  • Rhino MockRepository Concrete vs Static UsageJun 12, 2013. In this article we’ll see difference between usage of MockRepository object initialization vs using Static functions to create and setup the mock/stubs.
  • How to Display Static Label Text on Screen in Lightswitch 2012Jul 25, 2013. This article shows how to display a Static Label Text on the screen using a LightSwitch Application (Visual C#) in Visual Studio 2012.
  • Static and Dynamic Binding in JavaJul 30, 2013. In this article we discuss static and dynamic binding in Java.
  • Understanding FACADE PatternAug 13, 2013. The GOF book says the Facade Pattern should “Provide a unified interface to a set of interfaces in a system. It defines a high level interface that makes the subsystem easier to use”.
  • Using Knockout in MVC ApplicationSep 05, 2013. This article shows how to bind static data using Knockout in a MVC Application.
  • Static Keyword in DetailsSep 06, 2013. In this article I will describe Static keyword can be used in 3 scenarios.
  • Variable Types in JavaOct 09, 2013. This article explains the variable types in Java and their properties.
  • Constructors in C#Oct 12, 2013. This article describes Constructors and types of Constructors available in C# and their description.
  • Main Method in JavaOct 15, 2013. In this article you will learn about the main method in Java and the important things to remember about the main method in Java.
  • Late Static Binding in PHPOct 24, 2013. In this example I will explain late static binding in PHP.
  • Static Initialization Block in JavaNov 19, 2013. This article explains static initialization blocks in Java.
  • Angular JavaScriptDec 13, 2013. Angular JavaScript allows you to extend HTML tags, features and vocabulary for your applications (doesn't matter native, web, static or dynamic), websites and portals.
  • Basics of AngularJSDec 17, 2013. Angular JavaScript allows you to extend HTML tags, features and vocabulary for your applications (doesn't matter native, web, static or dynamic), websites and portals.
  • Static WebMethod in Code Behind WebFormDec 17, 2013. In this article we will learn two important concepts one is why WebMethod is static and how to maintain session in WebMethod.
  • "this" Keyword in C#Jan 20, 2014. The "this" keyword is a special type of reference variable, which is implicitly defined within each constructor and non-static method as a first parameter of the type class in which it is defined.
  • Visual C++ RTMFeb 18, 2014. In this article you will learn about RTM functionality in C++.
  • Types of Classes in C#Feb 25, 2014. In this article we will learn about various types of classes in C#.

About static

NA

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
Download Free eBooks