Skip to main content

Posts

Showing posts from June, 2026

Mastering Modern C#

The DNA of C#: How It Was Made and What Changed Programming From "Microsoft Java" to a Modern Language Powerhouse When C# 1.0 was introduced in 2002 alongside the first release of the .NET Framework, it was clearly inspired by Java, C++, Delphi, and Visual Basic. However, Microsoft did not simply clone its competitors. They deliberately combined proven concepts from older languages with several brilliant new ideas that made C# and .NET distinctly unique. A perfect formula to summarize early C# is: Old Concepts + Modern Runtime + Component-Oriented Programming What C# Inherited from Older Languages C# didn't reinvent the wheel where it wasn't broken. Instead, it adopted foundational pillars from three giant predecessors: 1. From C (The Foundations) C# brought over fundamental syntax structures that were already decades old: Variables, Functions/Method...

Mastering C# Identifiers

Mastering C# Identifiers The Complete Guide to Compiler Rules, Naming Standards, and Framework Conventions When writing C# code, how you name your program elements—classes, variables, methods, and namespaces—matters immensely. These names are called identifiers . In the .NET ecosystem, identifiers are governed by two separate sets of guidelines: strict Compiler Rules (the absolute laws that dictate whether your code builds) and Framework Design Guidelines (the industry standards that make your code readable and maintainable). Let's break down both. 1. Strict Compiler Rules (The "Law") If you break these rules, the C# compiler will flag an error, and your application will fail to build. Treat these as absolute boundaries: Allowed Characters: Identifiers can contain alphanumeric characters (letters and numbers) and the underscore symbol ( _ ). Full Unicode character sets are supported. First Charac...

C# Keywords

C# Keywords Many different reserved words or keywords are used in C# programming. They are categorised as described below. It is advised to properly get familiar with the categories, functionality, and usage of each of them before we move forward. If, somewhere, you feel you are not able to grasp the correct meaning, make a note of it and in the future specific examples where it is explicitly used, you would be able to recall and revise it. Some examples for certain keywords can be viewed at: Link 1. Data Types and Modifiers bool Explanation: Represents a Boolean value that can be either true or false . It is an alias for the system type System.Boolean . Example: bool isCoding = true; byte Explanation: Represents an 8-bit unsigned integer that can store values from 0 to 255. Example: byte age = 25; char Explanation: Represents a single 16-bit Unicode character. It is enclosed in single quotes. Example: char grade = 'A'; class Explanation: Used to declare a reference t...