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.
  • 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.
  • Monitoring File System using FileSystemWatcher Class - Part 2Nov 26, 2001. In Part 1, we have seen how to use FileSystemWatcher class. Today I' m giving an example to monitor your file system.
  • Interrogating System with WMI - Part 2Jan 24, 2002. After my last article on WMI it was time to get serious. WMI or Windows Management Instrumentation is useful on a local machine to produce a WINMSD type program but using it across a network makes it even more useful.
  • 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.
  • Windows Services Admin: Control Your Windows ServicesMay 20, 2002. In this article, we will create an application to control Windows services on our local computer as well as on remote computers. You can simultaneously Stop or Start multiple Services on the local computer or on the specified remote computer.
  • 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.
  • Daleks in .NETDec 11, 2002. The other night my girlfriend dragged me down to the NYC Public Library claiming that they had a huge Science Fiction movie section. Admittedly my taste in movies and my wife's taste in movies can vary slightly, however, I was willing to take a chance, given that rentals at the library are free as opposed to $4 at the local video store.
  • Use Thread Local Storage to Pass Thread Specific DataMar 18, 2003. The specific thread level storage is known as thread local storage or TLS for short. The .NET threading namespace allows .NET developers to use TLS from within their multi-threaded applications to store data that is unique to each thread.
  • 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.
  • Distributed Computing Using .NET RemotingJan 05, 2004. AppDomain is an isolated environment for executing Managed code. Objects within same AppDomain are considered as local whereas object in a different AppDomain is called Remote object.
  • The Graphics Class and TransformationsApr 01, 2004. The Graphics class defined the transformation related functionality. This article discussed the Graphics class and its members that participate in transformation process.
  • 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.
  • 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.
  • 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 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 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 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.
  • How to Upload or Change an image in the Crystal Report at runtimeMar 20, 2006. This article will demonstrate how a user can customize the crystal report by uploading an image from the local computer.
  • The ReportViewer control, a local SSRS 2005 Report, and data from a Web Service.Mar 30, 2006. This article explains how to use a ReportViewer control in a C# Windows Application that displays a local SSRS report whose data source is a web service method.
  • 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.
  • Globalization and Localization in .NETJul 03, 2006. Localization is a technique to implement local and culture-oriented applications. This articles explains usage of System.Globalization to implement localization support in .NET applications.
  • A quick start with C# and Websphere MQJul 11, 2006. This article is trying to help the developers who want to start integrating .NET applications with Websphere Message Queue.
  • Working of Reference Type and Value TypeSep 18, 2006. This article shows you all the difference between reference and value type variables.
  • Get List of Processes in C#Sep 20, 2006. This application provides an interface where users can view local system's processes. The application is developed using Windows Forms and C#.
  • SQL Server Backup file in standard Zip formatOct 12, 2006. This is SQL Server Backup and restore tool, the system will store the backup files in standard Zip format ,the user-friendly screen let you backup and restore SQL Server database to local harddisk or remote network driver easily and quickly.The program can restore database easily.
  • 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.
  • Building Reports from Object Collection using ReportViewerApr 18, 2007. In this article, I discuss how to create reports from a business objects collection. I create a Windows Forms application with reporting being processed as local processing mode.
  • Consuming the Yahoo local Search Service in a C# Win Forms ApplicationJan 17, 2008. This article will demonstrate one approach that may be used to consume yahoo local search service to return a list of business locations through the use of a zip code based search for a business name or product.
  • 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.
  • 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.
  • OpenFileDialog in SilverlightNov 30, 2008. The OpenFileDialog allows users to select one or more files on the local computer or on a networked computer. This article demonstrates how to create and use an OpenFileDialog control in Silverlight using XAML and C#.
  • What is IPV6Dec 29, 2008. Details about IP Version 6
  • Getting an External IP Address LocallyJan 20, 2009. This short article shall address the easiest way possible to get your external IP address (and local/internal IP address).
  • Singleton PatternJun 09, 2009. In this article we will implement Singleton pattern to maintain global variables in Winform application.
  • 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 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.
  • Running the SQL Script File By Using The System.Diagnostics.Process ClassJan 20, 2010. Process Class Provides access to local and remote processes and enables you to start and stop local system processes.
  • Debugging and Tracing in C# Feb 04, 2010. In this article I will explain you about the Debugging and Tracing in C#.
  • Create a Windows Azure Storage service to store the blobsMar 03, 2010. This article describes what Windows Azure Blobs are, how to create and display the same on our local environment and lastly how to create a Windows Azure Storage service to store the blobs on the cloud.
  • How to Create Session Variable without Cookies?Mar 05, 2010. In this article you will learn how to Create Session Variable without Cookies?
  • 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.
  • Hosting and Debugging Silverlight in Windows AzureMar 15, 2010. This article will give a pictorial representation of how a Silverlight application can be hosted and debugged on local development fabric of Windows azure.
  • How to: Use FileSystemWatcher to listen to local drivesApr 23, 2010. In this article we will see how to listen to your files system and report of any changes happening to your local drives.
  • Localization in Silverlight 4.0May 05, 2010. Localization is the process of enabling an application for particular country, region or group by adding local specific component and by translating strings displayed in UI to local language.
  • Local File Access in Silverlight 4May 08, 2010. In Silverlight 4, we have an added feature that allows us to access Local File System. In this article we will see how we can do that.
  • Read and Write File to Local File System in Silverlight 4May 10, 2010. In Silverlight 4, we have an added feature that allows us to access Local File System. In this article we will see how we can read and write a file to local file system.
  • Drag and Drop Files in Silverlight 4May 13, 2010. In Silverlight 4, the plugin itself supports Drag and Drop events. In this article we will see how can we use the DropTarget to capture files from local system.
  • 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.
  • Local Database in Silverlight 4Jun 18, 2010. In this article we will see how we can use a local DB from the project folder.
  • 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+.
  • Step by Step walkthrough on CRUD Operation on Azure table: Part IIJul 21, 2010. This article is going to explain , how we can use AZURE table. This article will explain how to create a stroage account and then modify the connection string in exsiting azure application using local development storage.
  • 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.
  • 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.
  • Accessing Bitmap Locally or Directly for Windows Phone 7 Application Nov 22, 2010. In a Silverlight program, you’ve seen that a bitmap added to the project as a resource is bound into the executable. It’s so customary to reference that local bitmap directly from XAML, SilverlightTapToLoad project shows you how.
  • Thread- Local Storage of Data in .NETNov 30, 2010. Suppose you're writing a multi-threaded application and you want each thread to have its own copy of some data. You also want this data to persist throughout the lifetime of the thread.
  • 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.
  • Setting Up the Firewall on Local System/Computer to Connect to SQL AzureDec 10, 2010. If we want to connect to SQL Azure from a local system then we need to create an exception in the local firewall for TCP port 1433.
  • Connecting from SQL Server 2008 Management Studio to SQL AzureDec 13, 2010. In this walkthrough we will see how to connect from Local SQL server management studio to SQL Azure. Follow the below steps.
  • 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.
  • Remote and Local execution of Query in LINQJan 07, 2011. Remote execution is being default and same as majority of the query we write in LINQ.
  • 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.
  • How to read and write files in Silverlight 4Feb 08, 2011. In this article, we will see how to read and write files anywhere in local drives in Silverlight
  • Windows Azure for Developers Task 8: Working with WCF Service Web RoleMar 22, 2011. In this article, we will create a WCF Service Role and host on local development fabric and consume in a console application.
  • 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#.
  • SQL Server Integration Services (SSIS) - Create local folder using FTP Task in SSIS PackageMar 31, 2011. In this article we are going to see how to use a FTP task in SSIS package to create a local folder using FTP Task in SSIS packaging.
  • SQL Server Integration Services (SSIS) – Delete local folder using FTP Task in SSIS PackageMar 31, 2011. SQL Server Integration Services (SSIS) – Delete local folder using FTP Task in SSIS Package
  • SQL Server Integration Services (SSIS) - Delete local file using FTP Task in SSIS PackageMar 31, 2011. SQL Server Integration Services (SSIS) - Delete local file using FTP Task in SSIS Package
  • Constructors in C#Apr 26, 2011. A constructor is a special method available under every class responsible for initializing variables of the class.
  • What are Temporary Tables in Sql Server?Apr 29, 2011. Temporary tables are a useful tool in SQL Server provided to allow for short term use of data
  • 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.
  • SQL Azure - Views in SQL Azure Database And Not in On-Premise SQL DatabaseJul 27, 2011. In this article we are going to see the list of System View available in SQL Azure Database and not available in the On Premises SQL Server Local Database.
  • 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.
  • 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.
  • 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.
  • Java naming and directory interface(JNDI)Oct 06, 2011. JNDI is a mechanism to search a remote application from the local application. The remote application can be an EJB and the local application can be the client of EJB.
  • 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.
  • Windows Azure - Local Storage FeatureOct 20, 2011. In this article, we are trying to experiment the local storage feature of Windows Azure. From the previous article we found that local storage is one of the primitive storage mechanisms in Windows Azure.
  • Session and Application in ASP.NETNov 01, 2011. This article shows the use of session and application level variables in ASP.NET.
  • CallExternalMethod Activity in WorkflowNov 01, 2011. The CallExternalMethod Activity is used to send data from Workflow to a Host application through the local service.
  • RDLC Report Generation using DatasetNov 06, 2011. In the following Step-By-Step Guide we're going to create a local report (RDLC file) for ASP.Net 2010.
  • .NET 3.0 & 3.5 New FeaturesNov 12, 2011. This article is very useful to understand the features of C#. There are many features like Auto implemented property. Anonymous types, Partial methods, object initializes, implicitly typed local variables.

About Local-variable

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks