C# – Understanding Namespaces and the Unsign Directive

Namespaces disambiguate class names inside of class libraries or applications. You must reference class names by their full name. …. or, you can employ a using directive at the top of the code file to instruct the compiler to look in those namespaces to find the class that is referenced. You must always do thisContinueContinue reading “C# – Understanding Namespaces and the Unsign Directive”

C# – Understanding .Net Framework and Compalition

Today we have a topic that we hear it all throughout the lifecycle of a software development process. The .Net Framework consists of ; Runtime (Common Language Runtime, (CLR) ‘protection buble’, manage memory, protects user’s machine, etc. .Net Framework Class Library (FCL, Base Class Library, BCL) – thousand of classes built by Microsoft for everyContinueContinue reading “C# – Understanding .Net Framework and Compalition”

C# – Creating Class Files, Cohesive Classes and Code Navigations

Prefer more classes w/ narrowly defined responsibilities. Prefer to put each class in its own file. Prefer high cohesion – similarity singleness of purpose of the class members. To achieve high cohesion, a rule of thumb: try to make your classes fit on one “screen” of your IDE(no scrolling required). Understanding Object References and ObjectContinueContinue reading “C# – Creating Class Files, Cohesive Classes and Code Navigations”

C# – Introduction to Classes and Objects

One of the main concepts which we need to know for Object Oriented Programming is classes and what kind of thing it represents in real world scenarios so we can better grasp it in a way that we understand it fully. Class is a block of code that defines a data type. An object isContinueContinue reading “C# – Introduction to Classes and Objects”

C# – Manipulating Strings

We will be exploring today ‘Manipulating Strings’ in many aspects. Escape double quotes Accessing a specific character StartsWith(), EndsWith(), Contains() Check to see if a given string has a set of characters beginning , end or somewhere inside Return true/false IndexOf() Find the index for one string inside of another string Insert(), Remove() Insert: addContinueContinue reading “C# – Manipulating Strings”