C# Programming Tutorials

C Sharp Programming Tutorials And Articles
  Title / Author Replies
In synchronous programming, the user needs to wait for the method completion. In asynchronous programming, the calling thread starts the method and executes concurrently. The message queuing operates asynchronously. The client does not wait for the server to read the data. Message queuing...
Windows Runtime is a replacement for the Windows API. It provides user with managed classes that are used from C# to access the system features. The runtime is a native API. It is easy to be used as the .NET framework class. Namespaces The classes present in the Windows Runtime are grouped...
The following diagram shows the parts and containers present in the Managed Extensibility Framework. http://imgs.g4estatic.com/c-sharp/Managed-Extensibility-Framework/Fig1.jpg The container is used to find the parts from the catalog. The catalog finds the parts from the assembly or a...
The .NET framework 4.5 has namespace as System.Dynamic which contains the DLR. The following diagram shows the dynamic language runtime in C#. http://imgs.g4estatic.com/c-sharp/dynamic-language-runtime/Fig1.jpg The dynamic language runtime consists of following components. Expression...
The following new features are introduced in C# 5.0: Async and await Lambda expressions Caller Information Windows Runtime Support Compiler API 1. Async and await
.NET contains number of classes that help in generic collection creation. The generic classes are strongly typed. The methods perform sorting, reversing elements, element searching. User can create a Key/Value pair. Some of the generic collection classes in .NET are as shown below: List<T>...
Collections classes like ArrayList, Hashtable, Stack, and Queue are used. The various concepts of generics and its classes can be explored in this article. Collection classes in .NET .NET frame work provides user with different collection classes. They are present in System.Collections...
When I started on Drag and Drop in C# I could not find much on the net and so I have decided to tackle the problem here. First follow the steps to see the working sample. 1. Create a new C sharp windows application. Rename Form1 to a suitable name. I would refer it as TestForm 2. Add a treeview...
Almost every software application has to deal with some sort of text information. This information can be the content of some email, a network message or some input value obtained from the user. WPF contains Text controls for this purpose that can be used to get input from the user. Similarly, to...
Specialized containers are a variant of content controls but unlike content controls which can hold simple content type such as string or UIElement object, the specialized containers has larger impact and they affect the outlook of the larger portion of content visible on the screen. In this...
WPF content controls are a specialized form of WPF controls and are used to store content either entered by the user or read from any other data source. Content controls can contain only one child element. This is unlike layout controls such as Grid, WrapPanel and StackPanel controls that contain...
Grid layout is one of the most widely used layouts in any WPF application. The basic concept of a Grid is that it divides the window surface into grids of invisible rows and columns to which other controls or layouts can be added. Grids are usually invisible but can be made visible for debugging...
A WPF Window is integration of multiple elements. Top level elements such as Window, layout containers such as StackPanel, DockPanel, Grid etc. and control elements such as text boxes, buttons, menu bars and tool bars etc. All the control elements in WPF derive from System.Windows.Control base...
WPF (Windows Presentation Foundation) is a Microsoft’s technology for creating rich client applications. WPF applications are more interactive, aesthetic and flexible as compared to their traditional counter parts The Windows Form applications. WPF is a subset of Microsoft’s famous .NET framework. ...
Most of the advanced .NET applications that you develop need to communicate with other applications. For instance, for downloading or uploading data to some remote server, networking is required. In order to send or receive email via SMTP or to send and receive webpages via an HTTP protocols, some...
Most of the time, a developer needs to read or write data from a location outside the memory of the program. This location can be a text file, a network connection a database or any other source of data. In order to deal with such sources of information, .NET Framework provides a set of classes...
In my last tutorial on basics of threading, I explained what threading basically is and how it is actually implemented in C#. I would advise you to have a look at it before continuing with this article or if you have an Idea of what threads actually are, you can continue with this article. Writing...
In my last article, Complete Threading Tutorial in C#, I explained basics of threading. I explained that how threads can be created, how locking is implemented to make your applications thread-safe and how exception handling is implemented in threaded applications. This article explains some more...
Often times, applications need to perform multiple tasks at a time. I always share Microsoft’s word processor’s example. While you type in the word processor, the application lets you type and in the meantime it is running spell-check and dictionary in the background to inform you whenever you type...
.NET Framework comes with a set of debugging tools. Particularly if you are using and advanced IDE such as Visual Studio, you can use debugger and other diagnostic tools available in the IDE. This debugging, however, is only applicable during the development of the application. Once the application...