C# Corner

Resources  
  • Using the ref ParameterMar 06, 2001. The ref keyword on a method parameter causes a method to refer to the same variable that was passed as an input parameter for the same method. If you do any changes to the variable, they will be reflected in the variable.
  • Naming Guidelines in .NETApr 20, 2001. Commenting and following a uniform naming guidelines in your code is one of good programming practices to make code more useful.
  • Serializing Objects in C#May 14, 2001. In simple words serialization is a process of storing the object instance to a disk file. Serialization stores state of the object i.e. member variable values to disk. Deserialization is reverse of serialization.
  • The out and ref Paramerter in C#Jun 12, 2001. The out and the ref parameters are used to return values in the same variables, that you pass an an argument of a method. These both parameters are very useful when your method needs to return more than one values.
  • Using ref and out ParameterJun 20, 2001. When we pass a parameter as ref to a method, the method refers to the same variable and changes made will affect the actual variable.
  • What & Why : Properties :: Part 2Jul 09, 2001. In the part 1 of this series, I discussed about the get method of the properties, with the help of which you can make your variable so that nobody can modify the value of the variable.
  • Is there any need to Boxing and UnboxingSep 21, 2001. With Boxing and unboxing one can link between value-types and reference-types by allowing any value of a value-type to be converted to and from type object. Boxing and unboxing enables a unified view of the type system wherein a value of any type can ultimately be treated as an object.
  • 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.
  • Pointers in C#Oct 25, 2001. C# also supports pointers in a limited extent. A pointer is nothing but a variable that holds the memory address of another type. But in C# pointer can only be declared to hold the memory address of value types and arrays.
  • C# Discussion Forum from Harrison LogicJan 29, 2002. Threaded Discussion Forum that utilizes the .NET framework, with C# as the ASP.NET server side language. Uses MS Access Database for data.
  • .NET Static Variables : Better than Application!Feb 22, 2002. In traditional ASP, we always had the Application object to store application-wide variables in.
  • A Shaped Windows Forms Application with Variable OpacityMar 11, 2002. This application demonstrates two simple techniques that beginners might find useful in developing creative new looks for Windows applications.
  • 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.
  • Using DTS from C#Sep 16, 2002. In this article I will concentrate on enumerating, executing and changing properties or global variables of DTS package.
  • 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.
  • Storing Data in C#Sep 17, 2003. In this article, we will talk about C# data types and how data storage works with different types of data types.
  • 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.
  • Difference between passing reference types by ref and by valueSep 02, 2004. We all know the difference between passing value types byval and byref, if the variable is passed byval any change to the variable value in the called function is not reflected back in the callee.
  • 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().
  • Will swap work if C# Manipulates Objects by Reference?Feb 15, 2005. C# does manipulate objects by reference, and all object variables are references. On the other hand, C# does not pass method arguments by reference; it passes them by value. Thus, a regular swap method will not work!
  • Out and Ref Parameters in C#Feb 27, 2005. The out and the ref parameters are used to return values in the same variables that you pass an an argument of a method.
  • 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.
  • Learning Delegates in C#, an IntroductionJan 03, 2006. There is this thing in C# called a delegate, which is going to be crucial to build interactions between our objects. What’s a delegate, you ask? Good question. A delegate is a pointer to a method. What’s that mean? Just like you can pass variable by reference, you can pass a reference to a method. Let me give you an example.
  • Types of VariablesJan 14, 2006. In this article we'll cover the behaviors of variables to Reference Types.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IIJan 15, 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 I'll cover some of the behaviors we need to be aware of when passing parameters to methods.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IIIJan 15, 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 cover an issue that arises from having reference variables in the heap and how to fix it using ICloneable.
  • 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#.
  • Server.Transfer : Passing Values from One Page to Another PageJun 19, 2006. Some times, we want to pass values from one page to another page. There are many ways by which we can do this like: by using query string, or session variable, or Server.Transer etc. This article shows you, how to pass values from one page to another page by using Server.Transfer method.
  • Working of Reference Type and Value TypeSep 18, 2006. This article shows you all the difference between reference and value type variables.
  • Tip related to sub containers and SqlDataSourceDec 06, 2006. This article provides some tips when working With Master page or SqlDataSource insert function In VS 2005.
  • 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.
  • F# Tuples and Binding (and more Binding)Mar 26, 2008. Binding in F# is similar to using variables in C# but there are some big differences. This article discusses one of the most used keywords in F# for binding ("let") and how it is different than setting a C# variable. I also cover the tuple F# data structure.
  • 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.
  • Simulating Autonomous Transactions in Microsoft SQL ServerOct 10, 2008. In the article, I will cover how to use table variable techniques in order to simulate the autonomous transaction behavior of Oracle databases in Microsoft SQL Server.
  • 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.
  • Singleton PatternJun 09, 2009. In this article we will implement Singleton pattern to maintain global variables in Winform application.
  • Resources in WPFAug 06, 2009. This article explains basics of resources in WPF.
  • Session ObjectAug 10, 2009. The Session object is used to store information about a user. The information is retained for the duration of the user session. Variables stored in the Session object are not discarded when the user browses from one page to another, they only destroyed when the user abandons the session or the session time out.
  • 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.
  • Using Table Variables Instead of Temporary Tables in SQL ServerOct 23, 2009. This article demonstrates how to use Table variables in SQL Server instead of temporary tables.
  • Variables in C#Nov 17, 2009. In this article I will explain about variable in C#.
  • C# 3.0 New Features: Part INov 26, 2009. This article explains about the new features introduced in C# 3.0 with sample codes.
  • 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.
  • Debugging and Tracing in C# Feb 04, 2010. In this article I will explain you about the Debugging and Tracing in C#.
  • 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.
  • Application State in ASP.NETMar 05, 2010. Application state is used to store data on the application machine. It works as a global variable in other programming languages. Application variable is an object that is shared by the multiple sessions. We can use application variable within page, HttpHandler and Global.asax.
  • How to Create Session Variable without Cookies?Mar 05, 2010. In this article you will learn how to Create Session Variable without Cookies?
  • 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.
  • Temporary Table vs Temporary Variable in SQL ServerJun 11, 2010. We have seen lot of difference between temporary variable and temporary table. Here is a nice difference in Transaction perspective.
  • Scope and Type of Variable and Performance in GDi+Jul 05, 2010. In this article you will learn how to Scope and Type of Variable and Performance in GDi+.
  • Static class in C#Jul 28, 2010. In this article you will learn how to use Static classes in c#.
  • Session Variables as ObjectsSep 22, 2010. Everyone uses session variables at some point in their career. What I am doing is offering what I feel is a better way to deal with session variables.
  • 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.
  • Performance of If-else if tree vs. Switch (multiple variables) in C#Sep 28, 2010. This article demonstrates multiple ways to implement if-else if tree, when there are multiple values to check, and compares their performance to a switch.
  • Values caught in intervalsOct 26, 2010. In this article we will see how to set your variables in defined interval or range.
  • 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.
  • Difference between value type and reference typeDec 02, 2010. This article tells us the difference between value type and reference type variables.
  • Indexing Table Variables in SQL ServerDec 08, 2010. In this article you will learn how to use Index Table variables in SQL Server.
  • Deferred Execution and Immediate Execution in LINQDec 31, 2010. Deferred Execution executes a query only when a loop starts. What I mean here is that, we iterate through the query variable to get the result.
  • Variables and Function in F#Jan 13, 2011. This article shows how to define variables and functions with the let construct in F#.
  • Difference Between Temp Table and Table VariableJan 20, 2011. This article explains the basic differences between table variables and temp tables. Because these things are mostly and widely used for temporary storing mechanism in the stored procedures in sql.
  • 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.
  • Calling Unmanaged Functions Which Take a Variable Number of Arguments From C#Mar 29, 2011. Many C# programmers are familiar with the Platform Invoke mechanism (using the DllImport attribute) for calling unmanaged functions from C#.
  • Constructors in C#Apr 26, 2011. A constructor is a special method available under every class responsible for initializing variables of the class.
  • 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.
  • Variables And Data Types in JavaJul 01, 2011. Some more Java basics for Java neophytes; this article is about the variables and primitive data types in Java.
  • The Concept of Functions And Variables in F#Jul 05, 2011. In this article you will learn about Functions and Variables of F#. This is for the people who want to have a Quick Review.
  • Static Method in C#Jul 20, 2011. In this quick article you will take a look at static methods in C#.
  • Object Initializer in C#Jul 29, 2011. Here you will learn some new features in C# 3.0 ike Object initializer, implicitly typed variables, extension methods, anonymous types, object initializer, Collection initializer, and automatic properties.
  • 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.
  • How to Access Environment Variables in VisualCOBOLSep 07, 2011. The purpose of this article is to provide the reader with an example of how to read and set environment variables from within a managed COBOL environment. We will utilize a WinForm to provide our user interaction.
  • Scope of Variable in ServletSep 19, 2011. Servlets can use four types of scope for the variables.
  • C# Static ConstructorOct 03, 2011. In this article I will be explaining Static Constructors with the help of small demo.
  • Introduction to F#Oct 05, 2011. F# is a multi-paradigm .NET language explicitly designed to be an ML suited to the .NET environment. or, F# is a functional programming language that runs on Microsoft's Common Language runtime and the .NET Framework.
  • Creating Generic Enums using C#Oct 11, 2011. An enum variable can then be set to any one of these constants or (in the case of ‘Flags’ enums) to a meaningful combination of them.
  • Session and Application in ASP.NETNov 01, 2011. This article shows the use of session and application level variables in ASP.NET.

About Static-Variables

NA

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.
Visual Studio Live - Redmond 2016