C# Tutorials
  • C# Tutorial
  • Getting Started
    • Hello World in C#
    • Main Method
    • Garbage Collection
    • Type System Unification in C# .NET
  • Fundamentals
    • Identifiers
    • Data Types
    • Varaibles
    • Types of Variables
    • Implicitly Typed Local Variables – var
    • Dynamic Type in C#
    • Var VS Dynamic in type C#
    • Scope of Variables
    • Access Modifiers
    • Constants or Literals
    • Operator
    • Command-Line Arguments
    • Boxing and Unboxing
    • Boxing vs Unboxing
    • Params in C#
    • Comments in C#
    • Type Casting or Type Conversion
    • Enumeration in C#
    • Properties in C#
    • Nullable Types
    • Structures
  • Important Keywords
    • Keywords
    • as Keyword
    • is keyword
    • Is vs As
    • Static Keyword
    • Type of Keyword
    • Difference between readonly and const keyword
    • Ref keyword
  • CONTROL STATEMENTS
  • Decision-making statement
  • Switch Statement
  • Loops
  • Foreach
  • Jump Statement
  • OOP CONCEPTS
    • Class and Object
    • Nested classes
    • Difference between Class and Structure
    • Overloading of Constructors
    • Inheritance in C#
    • Abtraction in C#
    • this Keyword
    • Static class
    • Partial Classes
    • Shallow Copy and Deep Copy
    • Different ways to create an Object
    • Object and Collection Initializer
    • Accessing structure's element using Pointers
  • METHODS
    • Methods
    • Method Overloading
    • Method returning an object
    • Method Parameters
    • Runtime (Dynamic) Polymorphism
    • Method Overriding
    • Method Hiding
    • Different between Method Overriding and Method Hiding in C#
    • Optional Parameters
    • Different ways to make Method Parameter Optional
    • Out Parameter with Examples
    • Difference between Ref and Out keywords
    • Anonymous Method
    • Partial Methods
    • Extension Methods
    • Local Function
  • CONSTRUCTORS
    • Constructors in C#
    • Default Constructor
    • Copy constructor
    • Private Constructor
    • Constructor Overloading
    • Static Constructors VS Non-Static Constructors
    • Invoking an overloaded constructure using this keyword
    • Destructors
  • INHERITANCE
    • Inheritance in C#
    • Multilevel Inheritance
    • Multiple inheritance using interfaces
    • Inheritance in Constructors
    • Inheritance in Interfaces
    • Abstract classes
    • Using sealed class to Prevent Inheritance
    • Object Class
  • Indexers & Properties
    • Properties
    • Restrictions on Properties
    • Indexers
    • Multidimensional Indexers
    • Overloading of Indexers
  • EXCEPTION HANDLING
    • System Level Exception vs Application Level Exception
    • How to use Multiple Catch Clause
    • Nesting of try and catch blocks
    • Using finally
  • DELEGATES
    • Delegates
    • Predicate delegate
Powered by GitBook
On this page

CONTROL STATEMENTS

PreviousRef keywordNextDecision-making statement