SHASHANGKA SHEKHAR'S BLOG

Author, TechWriter

Delegates

Hits: 249

In this article we will try to understand what is delegate, how to use it.

Dictionary meaning:A person sent or authorized to represent others “or “A person designated to act for or represent another or others

Read More

Classes in C#.Net

Hits: 85

A class is a blueprint, that defines the attributes and behaviors of the objects, that are created as instances of the class.

Classes are declared by using the keyword class followed by the class name and a set of class members surrounded by curly braces. Every class has a constructor, which is called automatically any time an instance of a class is created. The purpose of constructors is to initialize class members when an instance of the class is created. Read More

Casting and Type Conversions

Hits: 67

Type conversion is converting one type of data to another type. It is also known as Type Casting. In C#, type casting has two forms:

  • Implicit type conversion – These conversions are performed by C# in a type-safe manner. For example, are conversions from smaller to larger integral types and conversions from derived classes to base classes.(সফটওয়ারের দায়িত্তে)
  • Explicit type conversion – These conversions are done explicitly by users using the pre-defined functions. Explicit conversions require a cast operator.(নিজের দায়িত্তে)

Read More

Boxing and Unboxing

Hits: 59

Boxing: Implicit conversion of a value type (int, char etc.) to a reference type (object), is known as Boxing. In boxing process, a value type is being allocated on the heap rather than the stack. Read More

Constructor

Hits: 178

Constructor is a special method of a class or struct.

When a class or struct is created, its constructor is called. Constructors have the same name as the class or struct, and they usually initialize the data members of the new object. Read More