C# Programming Tutorials

C Sharp Programming Tutorials And Articles
  Title / Author Replies
C# is a strongly typed language: You might have heard this sentence numerous times. Have you ever wondered, what does that actually mean? We are here with the answer to this question and we would introduce to another fairly advanced and extremely interesting .NET concept, known as dynamic binding....
In this article, we are going to explore a couple of fairly advanced C# concepts. We will start by explaining the concept of extension methods in C#. I will explain you with the help of examples, what basically extension methods are, how they are actually used and what its benefits are. Next, we...
Operator overloading is one of the most fascinating and interesting object oriented programing concept which was first integrated in C++ language. As we know that C# integrates the robustness of C++ with delicacies of Java; therefore it has also inherited the concept of operator overloading from...
A lambda expression is basically an unnamed method which is used in place of delegate instance. Lambda expressions are also some times called inline delegates and they are mostly used with delegates. Anonymous methods can be represented in a more concise way using these lambda expressions. Lambda...
C# owes Java a lot: In terms of features and compilation strategy C# is very similar to Java. As a matter of fact, C# was developed with intent to compete Java. However, platform dependence and less portability of C# give Java edge over C#, Interfaces are one of the many features that C# inherited...
In the articles on namespaces in C#, I explained in detail that .NET framework class library contains thousands of classes, interfaces and enumeration in hundreds of assemblies. These classes are related to each other. We also know that C# is a purely object oriented language. Object oriented...
C# and Java are object oriented language where all code resides in a .NET type called class. An object oriented languages are those languages where user defined code has to be in some class. C# is 99.9% object oriented. You must be wondering why not 100%? The reason is that primitive data types in...
General Questions 1.Does C# support multiple-inheritance? No. But you can use Interfaces. 2.Where is a protected class-level variable available? It is available to any sub-class derived from base class 3.Are private class-level variables inherited? Yes, but they are not...
C# allows you to define two types of variables: value types and reference types. The value types hold actual values, while reference types hold references to values stored somewhere in memory. Also value types are allocated on the stack and are available in most programming languages. Reference...
C# is an object-oriented programming language developed by Microsoft Corporation . C# source code as well as those of other .NET languages is compiled into an intermediate byte code called Microsoft Intermediate Langauge. C# is primarily derived from the C, C++, and Java programming languages with...
Custom Math Class that can check if a number is even or odd, calculate your rental payment, mean, percent, and percentage of a number. My custom class for some math problems, including a function to calculate payment on a house or rental agreement. The Code This class is used to calculate...
Multithreading has been there in the world of computer programming for years. Although, almost all developers pretend to know what multithreading is, it looks like multithreading requires a little more attention when implementing in the real world. Of course, multithreading is easy to understand...
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...
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. ...
Introduction We use Winsock to establish connection between client and server . This is the beginning of everything in the computer of today's !!! The net is the most power tools of the programmers and you must learning to use it. In this article we will see how to create a simple chat...
When it comes to Visual Studio .NET; .NET framework is the heart and soul of everything. We cannot possibly talk about .NET without properly understanding what it really means by .NET framework. Therefore, this guide is for those who have been wondering what .NET framework is. .NET framework...
Introduction This solution describes an approach how to send email messages with or without attachments. Background The EmailProgram class is used to send email messages with or without attachments. The code
A few days ago I had an interview on a c# programmer vacancy (already received a refuse letter :happy: ) On the interview I was asked to implement a QuickSort algorithm and I couldn't do that, so now I want to help you not to repeat my mistake and get the understanding of this algorithm before...
Encryption/Decryption file, string etc using C# using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.IO; namespace BHI.Rats
Implementing Bubble Sort in C# /* ** Simple class to sort an array in ascending order using bubble sort ** @author: Tanaz Kerawala ** @author: S Pradeep ** @date: 5/29/2007 */