Posts

Showing posts with the label C#

C# Collections in four minutes - Collections & Collection Interfaces

Image
This article aims to give you an overview of collections that are available in C#. What is a Collection? A collection normally means a type whose purpose is to manage a group of other objects in memory and to provide access to those objects. Collection classes are specialized classes for data storage and retrieval. Collections typically include methods to add, remove, count and for, foreach for iterate through objects. ref -  https://docs.microsoft.com/en-us/dotnet/api/system.collections?view=netcore-3.1 Various Collections of C# There are two types of collections Arrays and Advanced Collections . Advanced Collections can be divided into two. Generic & Non-Generic collections. ➤ Non-Generic Collections The data type of the collection is not pre-defined. These collections are the various commonly used classes of the System.Collection namespace. ArrayList SortedList Stack Queue Hashtable BitArray I hope not to explain these data types further becau...

Why C# in 2020 ? - in brief

Image
C# was developed in 2000 by Andres Hejlsberg who leads the team at Microsoft as a rival to Java. Microsoft first used the name C# in 1988 for a variant of the C language designed for incremental compilation. That project was not completed but the name lives on. The name "C sharp" was inspired by the musical notation where a sharp indicates that the written note should be made a semitone higher in pitch.  The most recent version is 8.0, which was released in 2019 alongside Visual Studio 2019 version 16.3. I ts development team is currently led by Mads Torgersen. C# is, Simple It is like a complexity removed version of Java or C++. Similar to Java. Modern Modern features such as exception handling, garbage collection, extensible data types, and code security are features that are expected in a modern language. C# contains all of these. These features are updated recently. Object-Oriented Powerful & Flexible  Diverse as creating word processo...