Search
Sponsor
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Sun, 23-Nov-2014 Authors
All Time Authors
Satyapriyanayak
12160
Vishal@Neeraj
8800
Jayakumars
8120

Latest members | More ...


(Statistics delayed by 5 minutes)
 Codes

Default value of variables in c#

Omniitstudent
Posted by Omniitstudent under C# on 3/15/2012 12:59:31 PM | Points: 40 | Views : 1294 | Status : [Member]

TYPE ------------------------------------------ DEFAULT VALUE

. All Integer type ------------------------------- 0

. Char Type------------------------------------- '\x000'

.Float Type ---------------------------------- 0.0f

. Double Type ---------------------------------- 0.00d

. Decimal Type ------------------------------------- 0.0m
. bool type --------------------------------------------- false
.enum Type ---------------------------------------------- 0
.All Reference type --------------------------------- null

crazy code


omprakash
Found interesting? Add this to:



Comments or Responses

Posted by: T.Saravanan on: 3/15/2012 | Level:Silver | Status: [Member] [MVP] | Points: 10

Hi,

Kindly post your code inside the code tag.

Posted by: Sheonarayan on: 3/16/2012 | Level:HonoraryPlatinum | Status: [Microsoft_MVP] [Administrator] | Points: 10

I think as this is not code snippets, so posting inside the Code block /Code tag is not necessary.

Thanks


Login to post response