Category: C Sharp

C# (C sharp) programming language.

C# – Properties

Properties are named members of classes, structures, and interfaces. Member variables or methods in a class or structures are called Fields. Properties are an extension of fields…

C# – Indexers

An indexer allows an object to be indexed such as an array. When you define an indexer for a class, this class behaves similar to a virtual array….

C# – Delegates

What if we want to pass a function as a parameter? How does C# handles the callback functions or event handler? The answer is –…

C# – Events

An event is a notification sent by an object to signal the occurrence of an action. Events in .NET follow the observer design pattern. The class…

C# – Collections

Collection classes are specialized classes for data storage and retrieval. These classes provide support for stacks, queues, lists, and hash tables. Most collection classes implement…

C# – Generics

Generics allow you to define the specification of the data type of programming elements in a class or a method, until it is actually used in…

C# – Anonymous Methods

We discussed that delegates are used to reference any methods that has the same signature as that of the delegate. In other words, you can…

C# – Unsafe Codes

C# allows using pointer variables in a function of code block when it is marked by the unsafe modifier. The unsafe code or the unmanaged code is a code…

C# – Multireading

A thread is defined as the execution path of a program. Each thread defines a unique flow of control. If your application involves complicated and time consuming…

C# – Questions And Answers

C# Questions and Answers has been designed with a special intention of helping students and professionals preparing for various Certification Exams and Job Interviews. This section provides a useful…