HI WELCOME TO KANSIRIS
Showing posts with label dtt. Show all posts
Showing posts with label dtt. Show all posts

Understanding Collections and Collections Interfaces

A collection is a set of related objects. Unlike arrays, a collection can grow and shrink dynamically as the number of objects added or deleted. A collection is a class, so you must declare a new collection before you can add elements to that collection. The .NET Framework provides various collections like ArrayList, HashTable , SortedList, Stack and Queue etc. All these collections are exists in System.Collections namespace. Class Description ArrayList Represents.

A Deep Dive into C# Errors or Exceptions Handling

Errors refer to the mistake or faults which occur during program development or execution. If you don't find them and correct them, they cause a program to produce wrong results. Types of Errors In programming language errors can be divided into three categories as given below- Syntax Errors Syntax errors occur during development, when you make type mistake in code. For example, instead of writing while, you write WHILE then it will be a syntax error since C# is a case sensitive language. bool flag=true;   WHILE.

A Deep Dive into C# Abstract Class

Abstract class is a special type of class which cannot be instantiated and acts as a base class for other classes. Abstract class members marked as abstract must be implemented by derived classes. The purpose of an abstract class is to provide basic or default functionality as well as common functionality that multiple derived classes can share and override. For example, a class library may define an abstract class that is used as a parameter to many of its functions, and require programmers using that library to provide.