C# Programming Tutorials

C Sharp Programming Tutorials And Articles
  Title / Author Reverse Sort Order Replies
Views
Windows Forms text boxes are used to get input from the user or to display text. The TextBox control is generally used for editable text, although it can also be made read-only. Text boxes can display multiple lines, wrap text to the size of the control, and add basic formatting. The TextBox...
10
289,337
Introduction LinkedList is a general-purpose linked list. It supports enumerators and implements the ICollection interface.It is a true linked list with separate nodes of type LinkedListNode, so insertion and removal are O(1) operations. Lists that contain reference types perform better if...
0
47,522
Introduction An event is a message sent by an object to signal the occurrence of an action. The action could be caused by user interaction, such as a mouse click, or it could be triggered by some other program logic. The object that raises the event is called the event sender. The object that...
0
6,282
Introduction Commenting in any programming langauge is important part of development because it helps understanding the code better and supplements when working as a part of the large team and so C# being a langauge of the modern era has some of the best support any project needs as far as the...
3
19,335
Generics are the most powerful feature of C# 2.0. Generics allow you to define type-safe data structures, without committing to actual data types. This results in a significant performance boost and higher quality code, because you get to reuse data processing algorithms without duplicating...
0
10,683
If you program in more than one language, sometimes you want to use an phrase or expression from one language in the other, when it does not exist you have to invent it for that language. Nested functions are functions defined within functions. They can be useful for compartmentalizing behavior...
3
17,618
Introduction Exceptions are unforeseen errors that happen in your programs. Most of the time, you can, and should, detect and handle program errors in your code. For example, validating user input, checking for null objects, and verifying the values returned from methods are what you expect, are...
3
15,166
If you go through any standard C# books you will see the constructors and so I would not get into the details of the constructors but what is more important to me is the use of static constructors which is somethine new in C# or you can say that its a copy of initiliazation block in Java. ...
5
29,140
One of the most important modules of a software application is the module that implements time and date management functionality. Time and dates are an integral part of any application be it a desktop based application, a web based application or a mobile application. Consider a scenario, where you...
0
442
In almost every software application, you need to handle a list of data of any type. The list can contain, users registered on the website, the list of items purchased by the user or the list of items that have been sold and so on and so forth. In order to handle lists of data we have data...
0
451
Most of the .NET functionalities are provided via managed types. These managed types are organized in hierarchical namespaces. .NET framework contains thousands of types and the number is prospering with every passing day as more and more developers are contributing towards expanding the language...
0
554
Strings are an integral part of any programming language. In almost every programming language you would find strings of data being passed as input and being displayed as input. Strings are an important way to interact with the user. Whenever you visit a website, you are often asked to sign up...
0
596
Any software application, two of the most frequently done tasks are formatting and parsing the data. In simplest words, formatting refers to the process of converting some type to string and conversely parsing refers to converting string into some other data type. There are several techniques that...
0
439
In addition to string, another extremely important entity that lays at the foundation of any software application is the numbers. Numbers play a very crucial role, particularly in the business logic layer of any software application. Logic building requires strong knowledge of numbers and their...
0
508
.NET framework provides wide range of namespaces that contain types, interfaces and structs which can be used to store, manage, and sort collections of data. These types include, lists, arrays, linked list and sorted as well as unsorted dictionaries. The types of collections available in .NET...
0
634
In my last article, I explained, how can we iterate upon a collection to traverse or enumerate its items using the IEnumerable and IEnumerator interfaces along with their generic conterparts. However, those interfaces have some limitations, for instance we could only traverse the collection in...
0
451
The array is one of those data structures which have been in use since the advent of the programming languages. Be it C, C++, Java, PHP or any other web-based, desktop or mobile application development, you will find an array data structure to hold records of data. Syntax may be different but the...
0
393
In my recent articles, I have been walking you through some of the most commonly used types and interfaces that play integral role in storing collection of items. We have previously studied Lists, Stacks, Queues and other collections. I have also explained Array class and its usage in one of my...
0
417
LINQ (Language Integrated Query) is arguable one of the most astonishing features of the .NET framework. If you have slightest idea of database programming, you must have written SQL queries. Something like “Select * Name From Customers”. This line was actually used to get names of all the...
0
385
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...
0
95