Console C#.Net Tutorial

Visual Studio.NET IDE

Define C#.NET

C# Comment

C# Variables

C# Data Types

C# Escape Sequence

C# Operators

Format String

Operator Precedence

C# Keywords

Constant Variable

Type Conversion

Flow Control

C# Arrays

C# Character

C# Strings

User-Define Methods

Variable Scope

C# Enumerations

C# Structure

C# Exception Handling

Object Oriented Programming

C# Classes

Constructor & Destructor

C# Inheritance

C# Polymorphism

C# Operator Overloading

C# Method Overriding

C# Interface

Abstract Classes & Methods

Sealed Classes, Methods

C# Properties

C# Indexer

C# Delegates

C# Generics

C# Collection

C# ArrayList

C# Stack

C# Queue

C# HashTable

C# SortedList

Page Stats

Visitor: 180

Type Conversion in C#.Net

Type conversion or type casting is a process of converting a value of one data type into another data type is known as type conversion. It has two forms:
1. Implicit Conversion – Assigning value of smaller data type into larger data type is known as implicit conversion. Implicit conversion requires no work and no additional code.
2. Explicit Conversion – Assigning value of larger data type into smaller data type is known as explicit conversion.



Checked and Unchecked is used to check for overflow checking context for an expression.


Boxing and Un-Boxing: Boxing is used to Process of a converting a value type to a reference type. And the reverse process is called Unboxing.