Anonymous Classes and Methods in C#
Anonymous classes and methods in C#, Anonymous, as the name suggests is undesignated or unspecified. It is an interim data type whose properties can only be read but not manipulated.
The scope of the anonymous type is mainly local to the method where it is declared. Points to be noted in the case...
C# Methods
The method is a set of programming statements which performs a specific task. In C# Main () method is the entry point of the program and it is called by CLR.
Methods...
C# Classes & Objects
Classes and objects are the core of concepts of OOPs methodology. In OOPs system objects are the building blocks of the development process and they represent real world things.
Objects take place...
C# OOPS
Object-oriented programming (OOP) is the approach used in the development of software. Before OOP there is a procedural oriented programming approach (POP). In POP programmers write functions to accomplish each task...
C# String Manipulation
The string is the most important data type ni C#. String with reference type and the word string is an alias for the class ‘System.String’. There is no difference between keywords...
C# Boxing and Unboxing
All reference types and value types are derived from ‘System.Object’ class. So the reference variable of an object class can refer to any type.
The process converting value type into object...
C# Type Conversion
While writing code programmers work with various types of data types like string, integer, floats etc. Sometimes there is the requirement to assign the value of one data type to another...
C# Data Types & Variables
C# is strongly typed language; therefore every variable, constant, literal must have a declared type. C# provides a wide range of built-in data types, which makes C# more suitable for various...
C# Loop Control Structure
Loop Control Structure
Many times there is a requirement to execute some statements repeatedly many times. Programming languages provide looping structures to accomplish this kind of task. C# provides following looping structures...
C# Case Control Structure
While writing code for software it the common task to check some conditions and take actions according to that conditions. In C# we can achieve this with the help of following...