Welcome Guest
Tanvtech logo
Tanvtech logo
 

Class


1-Reference type
2-Store at heap
3-Can inherit

Struct


1-Value type
2-Store at stack
3-No inheritance

Abstract Class


1-Class can inherit only one
2-abstract class.
3-Can have access modifier
4-Can have fields and const defined

Interface


1-Class can inherit multi interfaces.
2-No access modifier, public by default
3-Fields are not allowed in the Interface

Reference Type


1-Point to location in memory
2-Store on Heap
3-Default value can be null
4-Drive from System.Object
Examples:
string ,Class Object,Interfec,Delegate

Value Type


1-Point to a Value
2-Store on Stock
3-Default value can not be null
4-Drive from System.ValueType
Examples:
Int,Char,float, bool,DataTimes

String


1-Immutable
2-Use when dealing with small string
3-Concatenating using
4-Slow when dealing with big string

StringBuilder


1-Mutable
2-Use when dealing with large amount of data
3-Append is used
4-Faster

Const


1-Can not be modify
2-Value is set at Compile time

Static ReadOnly


1-Can be modified by the containing class
2-Value set at run time

Boxing


1-Convert value type to Reference type

UnBoxing


1-Convert reference type to value type

Out


1-Can be passed uninitialized

Ref


1-Have to be initialized before passing

Heap


1-Where Reference Type variable are stored
2-Slower
3-Belong to Process

Stack


1-Where Value Type variable are stored
2-Faster
3-Auto clean up
4-Belong to Thread
5-Last In First Out data structure

ArrayList


1-Key value numeric
2-Slower
3-Hadle small amount of data

HashTable


1-Key value can be numeric or alpha numeric
2-Faster
3-Can handle large amount of data.
 
© Tanvtech. All Rights Reserved.