C# Corner

Resources  
  • 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.
  • Time TickerJun 26, 2001. Graphics Class encapsulates a GDI+ drawing surface. The FromHWND method is used to create a new instance of the Graphics class from a window handle. Clear method fills the entire drawing surface with the specified RGB color by using Color class. DrawString method draws a string using Font and SolidBrush classes.
  • Network Programming in C# - Part 2Nov 12, 2001. This is the second part of the series of articles about the network programming with C#.
  • Creational Pattern - Abstract FactoryFeb 11, 2002. An abstract factory provides an interface for creating families of related objects without specifying their concrete classes. Sometimes one wants to construct an instance of one of a suite of classes, deciding between the classes at the time of instantiation.
  • JIT CodingMar 11, 2002. One not so well known feature of .NET platform is possibility to invoke compiler and practically create code and assembly from running instance of application. It is possible to do that in two ways. First one is a bit simpler and involves namespaces System.CodeDom and System.CodeDom.Compiler, second one is more efficient and utilizes namespace System.Reflection.Emit. Since there are very few examples about how to use System.CodeDom.Compiler I will start with it.
  • Tutorial: Capturing and Running IE Instances in a Windows controlMar 15, 2002. In this article we are going to study how to find the running instances of Internet Explorer on your machine.
  • Prototype PatternMar 22, 2002. The Prototype pattern is used when creating an instance of a class is very time-consuming or complex in some way.
  • Globalized Property GridApr 17, 2002. The property grid is a nice control to display properties and values. You create an instance of your class and assign it to the property grid. By using reflection a property grid extracts the properties of the class and displays its values.
  • 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.
  • 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.
  • Single Instance Control ComponentSep 23, 2002. This article is on a single Instance control component which checks whether any instance of your application is running on the System.
  • Singleton Patterns in C# RevisedDec 16, 2002. I am coming from the Java world, where synchronizing the Singleton creation is common practice.
  • Creating an Instance of Internet Explorer in C#Dec 19, 2002. I was trying to write a program that opened an instance of Internet Explorer in a separate window, rather than use the Browser control that comes with the .NET platform.
  • Late Binding With ReflectionOct 20, 2003. Component based technology has done great things for software development, allowing reuse and leading to better-written code that separates subjects and entities into distinct components.
  • Understanding SQL Server Yukon Service BrokerFeb 25, 2004. The new version of Microsoft SQL Server™ "Yukon" comes together with a set of technologies capable of enlarging the horizon for database applications. One of the most remarkable technologies is the Service Broker that makes it possible to build database-intensive distributed applications. In this article we explore the core concepts of the Service Broker and show how to use its potentialities to build applications with message interchanging.
  • Validating Input Xml Data FilesJun 28, 2004. In this article we'll discus two strategies for validating input XML data files. The validation of an XML input file could occur at various instances of processing.
  • An in-depth look at WMI and Instrumentation: Part IISep 18, 2004. In this second part of the series, you will learn how to work with WMI classes and class instances, and then demonstrates the wealth of information available through the Win32 and IIS WMI providers.
  • Download Files using HTTP and Proxy Server in C#Sep 21, 2004. This article explains how to pass proxy server network credentials when downloading files using HTTP.
  • 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.
  • MDI (Multiple Document Interface)Jul 05, 2005. This tutorials describes about Multiple Document Interface.
  • C# using the Proxy Pattern to Define RelationshipsJan 23, 2006. I was recently working on a 2.0 Framework project where we had many types of related objects. However, we needed to ensure that there were not multiple instances of the same object in memory. Usually the GOF Proxy pattern is used to hide or control access to an object, but we can also use it to define relationships between objects.
  • Restricting User InputDec 28, 2006. This article describes an approach to restricting the user’s input to letters only, numbers only, letters or numbers only, and special characters only. The approach is simple to implement and can be used whenever it is necessary to restrict a user’s response to instances where it is necessary to capture information from the user into a form’s text box control.
  • Passing Data Between Windows FormsJan 16, 2007. This article provides a simple example of using delegates and events to transfer data between Windows forms. The example provided contains three separate forms; the main form interacts with the other two forms by responding to events generated by instances of the other two forms.
  • Passing and retrieving parameters from windows workflowJun 09, 2008. Basically this article gives an idea about how to pass the parameters and getting output parameters from the workflow.
  • Access the Same Instance of Internet Explorer WindowJun 26, 2008. This tip shows how to open an URL inside an Internet Explorer browser window from your C# application. Furthermore it shows how to update that specific window.
  • Checking previous instance (single instance) of an C# windows application, also setting MDI child form to a MDI parentSep 04, 2008. In this article I will describe how to check previous instance (single instance) of an C# windows application and also whether a MDI child is set to a MDI parent
  • Intoduction to Biztalk Server 2006Nov 01, 2008. This article describes What is Biztalk server and explains a little about Message Engine and message lifecycle inside the Biztalk server.
  • The Two Interceptors: HttpModule and HttpHandlersDec 23, 2008. Many times we want to implement pre-processing logic before a request hits the IIS resources. For instance you would like to apply security mechanism, URL rewriting, filter something in the request, etc. ASP.NET has provided two types of interception HttpModule and HttpHandler.
  • SharePoint Quick Start FAQ: Part IIIJan 15, 2009. This is my third series of SharePoint Quick Start FAQ. We will cover page templates , page instances , WSS model , understand safe mode processing , deploy custom controls and understand WebParts. So let’s drink the SharePoint wine series by series, slowly , maintain the hangover and enjoy this great product.
  • Singleton Design Patterns in C#Jun 08, 2009. Whenever we want that a class has only one instance and it should have global point to access it but allowing the flexibility to create more objects if the situation changes,in that case we will use Singleton Design Pattern.
  • Instance Management in WCF Part # 1Jun 19, 2009. This is first part of multi series articles. This article is giving introduction of Instance Management. This article will explain about Per-Call Instance management technique as well.
  • Instance Management in WCF Part # 3Jun 22, 2009. This article is part # 3 of Instance Management in WCF. This article will explain about Singleton Service Instance mode. This article will give theoretical introduction and explanation of coding sample also. It will also discuss about various disadvantages of Singleton Service Instance mode and its potential place of uses.
  • Instance Management in WCF Part # 2Jun 23, 2009. This article is part # 2 of Instance Management in WCF. This article will explain Session Full Instance management service. This will explain different Session Mode at Contract level. This will explain Per-session service also. This article will be explaining Session Full Service with a code also.
  • Instance Management in WCF Part # 4Jun 25, 2009. This article is part # 4 of Instance Management in WCF. This article will explain how to work with Session ID in WCF. This article will give theoretical introduction and explanation of coding sample also. It will explain 2 full coding sample that how to work with Session ID in WCF.
  • Enumerating SQL Server InstancesSep 08, 2009. Learn how to enumerate currently installed SQL Server instances on this machine and on the network.
  • Singleton Pattern in C#Nov 26, 2009. In this article we will see how to create a single instance of a class using Singleton Pattern.
  • Checking Improper DISPOSE in assemblies using SharePoint APIFeb 23, 2010. In this article I will show how to check improper disposing of instance of SharePoint classes in an assembly.
  • Single instance of application in C#Mar 25, 2010. There is some application that we want that only single instance of application works at a time. So here in this article is the logic for doing that.
  • How to Prevent Multiple Instances of Child Form in MDI Windows Form ApplicationApr 12, 2010. This article shows you how to prevent multiple instances of child form in MDI windows Form application.
  • Programmatically Enumerating, Attaching, and Detaching SQL Server DatabasesApr 14, 2010. This writing is like an encyclopedia for the SQL statements and stored procedures used to enumerate, attach, and detach databases on a SQL Server instance.
  • Creating a Button at Run-time in C#May 13, 2010. Creating a Button control at run-time is merely a work of creating an instance of Button class, set its properties and add Button class to the Form controls.
  • Enumerate the ALL SQL Server Instances in NetworkJun 01, 2010. In this article I will teach you how to get names and all other information of sql server instances that are in network.
  • 3 Ways to Do WCF instance Management (Per call, Per session and Single)Jun 07, 2010. Many times we would like to control the way WCF service objects are instantiated on WCF server. You would like to control how long the WCF instances should be residing on the server.
  • WCF Concurrency (Single, Multiple and Reentrant) and ThrottlingJun 27, 2010. In this article we will concentrate on WCF concurrency and throttling. We will first try to understand what are WCF concurrency and the 3 important types of WCF concurrency. We will then see a small sample of WCF concurrency with single and multiple. We will then go through 9 combinations of WCF concurrency and instancing. Finally we will try to understand how to configure throttling using WCF ‘web.config’ file.
  • How to: Execute only one instance of application concurrentlySep 07, 2010. There was a requirement that the application can’t run more than one instance, and if already running then show the message to the user and set that window as active. Here we will see how to do that.
  • Abstraction in C#Oct 13, 2010. The word abstract means a concept or an idea not associated with any specific instance.
  • Chapter 3: Data-Tier ApplicationsNov 30, 2010. With the release of Microsoft SQL Server 2008 R2, the SQL Server Manageability team addressed these struggles by introducing support for data-tier applications to help streamline the deployment, management, and upgrade of database applications. A data tier application, also referred to as a DAC, is a single unit of deployment that contains all the elements used by an application, such as the database application schema, instance level objects, associated database objects, files and scripts, and even a manifest defining the organization’s deployment requirements.
  • Using reflection and attributesDec 12, 2010. Reflection provides objects (of type Type) that encapsulate assemblies, modules and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties.
  • Chapter 5: Consolidation and Monitoring in SQL ServerDec 22, 2010. The goal of SQL Server consolidation is to identify underutilized hardware and improve utilization by choosing an appropriate consolidation strategy. With SQL Server, hardware could be considered to be underutilized when workloads are using less than 30 percent of server resources.
  • Singleton Pattern - Creational PatternJan 19, 2011. This is a part of the Creation Pattern. This pattern ensures that you have only one instance and provides a single point of contact to access the instance.
  • Advantage of [ServiceDependency] in WCSF - Instance ReuseApr 06, 2011. Here we will see Advantage of [ServiceDependency] in WCSF - Instance Reuse.
  • Initializing Windows Azure Diagnostics: Part 1May 07, 2011. Windows Azure diagnostic monitor runs in Windows Azure and in the computer's emulator and collects diagnostic data for a role instance.
  • Windows Azure - Reimage a Running Role Instance of an ASP.Net Azure Web ApplicationJul 13, 2011. In this article we are going to see how to ReImage a running instance of an Azure application using the Windows Azure Management Portal
  • Windows Azure - Reboot a Running Role Instance of an ASP.Net Azure Web ApplicationJul 13, 2011. In this article we are going to see how to reboot a running instance of an ASP.Net Azure Web Application using the Windows Azure Management Portal
  • Delegate in .NET (C#): Digging / Acquaint - Make it SimpleJul 17, 2011. A delegate is an object or instance which can hold a reference of any function or which can bind a function.
  • Windows Azure - Fixing Reconnect Remote Desktop Error: The Specified User Name does not exist. Verify the Username and try Logging in againJul 18, 2011. In this article we are going to see how to fix the error 'The Specified User Name does not exist. Verify the Username and try logging in again' when we try to reconnect to the Remote Desktop Azure Role Instances.
  • 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.
  • WCF Instance ManagementSep 14, 2011. Instance Management is the name for a set of techniques used by WCF to bind client requests to service instances, governing which service instance handles which client request. This is a service side implementation detail.
  • Explicit Interface C#Oct 26, 2011. In this article we will see how to explicitly implement interface members and how to access those members from the interface instances.
  • Destructor in C#Nov 15, 2011. Destructors are used to destruct instances of classes. In this article you will understand how different a C# destructor is when compared to a C++ destructor.
  • Action Tags in JSP Nov 26, 2011. The JSP Action tags are set of some basic tags, such as inserting other page resources, forwarding the request to another page, creating and locating the JavaBeans instances, and setting and retrieving bean properties, in JSP pages.
  • Action Tag: useBean in JSPNov 29, 2011. The <jsp:useBean> action tag is used to instantiate a java bean, or to locate an exisiting bean instance, and assign it to variable name or id. Bean is a reusable component which mostly contains the setter and getter values, we also called it as mutators.
  • Describing the Life Cycle of ServletDec 12, 2011. The Life Cycle of a Servlet involves creating an instance of the Servlet, associating the Servlet with initialization information, dispatching request to the servlet instance and finally destroying the servlet instance.
  • Per Call Based - Instance Management in WCF hosted on Web AppDec 18, 2011. Today, in this article let dig out some theory stuff first and later we will try to implement the studied concepts i: e Per Call based Instance Management using WCF.
  • Per Session Based - Instance Management in WCF hosted on Web AppDec 18, 2011. Today, in this article let dig out some theory stuff first and later we will try to implement the studied concepts i:e Per Session based Instance Management using WCF.
  • Single Instance Based - Instance Management in WCF hosted on Web AppDec 20, 2011. Today, in this article let dig out some theory stuff first and later we will try to implement the studied concepts i: e Per Single based Instance Management using WCF.
  • SharePoint 2010 - Creating Web ApplicationMar 06, 2012. How to create a web application in a SharePoint instance that can be used to support a new set of users.
  • Autoscaling Application Blocks WIndows AzureMay 17, 2012. Autoscaling Application Blocks can automatically scale the Windows Azure application based on the rules defined specifically for the application.
  • Running Single Instance of the ApplicationJul 08, 2012. This article will show you how to do it using Mutex.
  • Get All Instances of SQL Server in C#Jul 09, 2012. If you're writing a Database Manager application or simply want to retrieve all the instances,this trick might come in handy.
  • SharePoint 2010 - Create List Definition and InstanceJul 11, 2012. In this article we will see how to create a List Definition using the SharePoint user interface and Visual Studio 2010.
  • Spring Tutorial: Chapter 4Aug 09, 2012. Another really useful feature from the Java Spring framework for performing some initialization tasks in your class before the instance of it is ready to be consumed or used by anyone and also cleanup the resources of that class when done using it.
  • Delete an Orphaned Workflow in Sharepoint 2010Aug 24, 2012. In this article we explore a real-world scenario where a workflow is sending a reminder email to users and the interesting thing is that the task list & data no longer exist.
  • Creational Pattern - Abstract Factory in VB.NETNov 08, 2012. An abstract factory provides an interface for creating families of related objects without specifying their concrete classes. Sometimes one wants to construct an instance of one of a suite of classes, deciding between the classes at the time of instantiation.
  • 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.
  • Use Thread Local Storage to pass Thread Specific Data in VB.NETNov 10, 2012. In an ideal world developers typically create instance variables and access these via interfaces to hold thread specific data. The .NET framework provides a mechanism to store data at a thread level and allows you to access this thread specific data anywhere this thread exists.
  • JIT Coding in VB.NETNov 10, 2012. One not so well known feature of .NET platform is possibility to invoke compiler and practically create code and assembly from running instance of application. It is possible to do that in two ways. First one is a bit simpler and involves namespaces System.CodeDom and System.CodeDom.Compiler, second one is more efficient and utilizes namespace System.Reflection.Emit. Since there are very few examples about how to use System.CodeDom.Compiler I will start with it.
  • Factory Pattern in VB.NetNov 10, 2012. A Simple Factory Pattern returns an instance of one of the several classes depending upon the parameters passed to the shared/non-shared factory method.
  • Implement Concrete Factory Design Pattern using Reflection in VB.NETNov 10, 2012. Reflection is used to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. In this example, we implement Concrete Factory Pattern using Reflection to fetch records from MS-Access and MS-SQL Database.
  • Instance Constructor in C#Jan 04, 2013. In this I am going to explain instance constructors that are used to create an instance of a class and explain the different types of instance constructors
  • Secured Connection Between SQL Server and C# Using Specific PortMay 10, 2013. In this article we will discuss how get the port no of our own SQL Server instance and how to use that port in SQL Server setting and at the end how use that port in your C Sharp application.
  • Introduction To Initializer Block In JavaMay 10, 2013. This article explains how initializer blocks work in Java. We discuss instance initializer blocks in Java.
  • SQL Server Log ShippingJun 26, 2013. It's easy to set up. A standby database is easy to maintain and troubleshoot. It can be used for reporting purposes and configured for log shipping in one or more servers, for instance.
  • Instance Modes in WCFAug 21, 2013. Instance mode is basically a service side implementation detail. It should not manifest itself on the client side.
  • 3 Techniques For Instance Management in WCFSep 10, 2013. Instance management basically defines the binding of service instance to a request received from a client.
  • Variable Types in JavaOct 09, 2013. This article explains the variable types in Java and their properties.
  • Startup of Database in Oracle 11gOct 15, 2013. Considering that you have installed the oracle for the first time and is about to start the database instance.
  • Know The History Of Your SQL Server DatabaseNov 06, 2013. This article explains how to determine if the database was upgraded from a previous version of SQL Server or if it was created on the existing instance of SQL Server using an internal version number.
  • Use of Tracing in Web API2Jan 15, 2014. This article explains how to do tracing in Web API 2. Tracing is used for finding the ITracewriter instance.
  • Create Site Definition With List Instance in SharePoint 2013Feb 05, 2014. In this article I provide a practical example of creating a Site Definition with List Instance in SharePoint 2013.
  • Multithreading in C#Feb 12, 2014. Multithreading is a feature provided by the operating system that enables your application to have more than one execution path at the same time.
  • Restricting a C# Application to a Single InstanceFeb 26, 2014. This post will show how you can implement that in your windows application using C#.
  • Shallow Copy and Deep Copy Using C#Apr 26, 2014. This article attempts to explain “Shallow Copy” and “Deep Copy” and the differences among them.
  • The Undocumented Sp_MSforeachdb Procedure in SQL ServerMay 27, 2014. This article explains the undocumented sp_MSforeachdb procedure in SQL server.
  • All About Instance Management in WCFJun 03, 2014. This article explains instance management techniques in WCF.
  • Working With Proxies in Entity FrameworkJun 11, 2014. This article helps you to understand what a proxy in the Entity Framework is and how to turn on and turn off a proxy and how to create a proxy instance explicitly.
  • Working With Instance and Static Data Members of a Class in C#Jul 02, 2014. This article explains instance and static data members of a class in C#.
  • Changing SQL Server Instance Name Using a SQL Server AliasJul 11, 2014. In this article I will explain how to change an instance name using a SQL Server alias.
  • Instancing in WCFJul 23, 2014. This article explains InstanceContextMode that determines the client proxy to communicate with the server.
  • Instancing and Concurrency in WCFJul 27, 2014. Here you will learn about Instancing and Concurrency in WCF.

About Instances

NA

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
European SharePoint Conference