C# Basics & Tutorials

The ultimate goal of COM Interop is to provide access to the existing COM components without requiring that the original component be modified. This tries to make the .NET types equivalent to the COM Types. COM Interop and Marshalling: COM had a mechanism of marshalling and un-marshalling to convert between the source and target data [...]

Reflection is the feature in .Net, which enables us to get some information about object in runtime. That information contains data of the class. Also it can get the names of the methods that are inside the class and constructors of that object. To write a C# .Net program which uses reflection, the program should [...]

Any Windows application must have one or more processes. A Process is structural unit with a memory block and using some set of resources. For each executable, the Windows operating system creates some isolated memory block. This C# .Net Tutorial tries to explain the basics of Multithreading in C# .Net. Every process must have at [...]

This C# Tutorial deals with interfaces in C# .Net. An Interface is a reference type and it contains only abstract members. Interface’s members can be Events, Methods, Properties and Indexers. But the interface contains only declaration for its members. Any implementation must be placed in class that realizes them. The interface can’t contain constants, data [...]

This article is a basic c# tutorial dealing with exceptions in c# .net. Practically any program including c# .net can have some amount of errors. They can be broadly classified as compile-time errors and runtime errors. Compile-time errors are errors that can be found during compilation process of source code. Most of them are syntax [...]

This article deals with the new C# .net features named attributes. This can be used as a Self paced C# .net training or C# tutorial material. C# .net Attributes provide a powerful method of associating declarative information with C# code. It can work with types, methods, properties and other language components. As a thumb-rule, a [...]

This article compares the same program written in the C# and Java languages and then compares the dissembled code of both languages. Java Hello Program: class Hello { public static void main(String args[]) { System.out.println(“Hello”); } } Disassembled Java Hello Program: class Hello { Hello() { // 0 0:aload_0 // 1 1:invokespecial #1 <Method void [...]

A Namespace in Microsoft .Net is like containers of objects. They may contain unions, classes, structures, interfaces, enumerators and delegates. Main goal of using namespace in .Net is for creating a hierarchical organization of program. In this case a developer does not need to worry about the naming conflicts of classes, functions, variables etc., inside [...]

The skeleton of object Рoriented programming is of course the concepts of class. This C# tutorial on OOPS explains classes and their importance in implementation of object oriented principles. Any language can be called object oriented if it has data and method that use data encapsulated in items named objects. An object oriented programming method has [...]

Microsoft Intermediate Language (MSIL) is a platform independent language that gets compiled into platform dependent executable file or dynamic link library. It means .NET compiler can generate code written using any supported languages and finally convert it to the required machine code depending on the target machine. To get some clarity in this language we [...]

1 2 3