Saturday, November 10, 2007

C# 3.0 - What's new?

Hello! everyone. This is festive time here in India. Yesterday we all celebrated Diwali, festival of light. I must tell you that lot of things have changed, things like playing with crackers, going out with friends and watching the way people decorated their houses using lights and ribbons. Yesterday, after having our Diwali prayer I just watched a movie (CHUCK) @ home and slept at around 11. Nothing new for me and it turned out to be yet another holiday. I wish things remained the same way as they were before.

Now let's talk technology. Microsoft have another a new set of features to C# in its third avatar. There is complete list available at MSDN, but I just wanted to add my comments to it as I study new features one by one. What I am planning is, I'll study one new feature everyday, post it here with my comments.
  1. Implicitly Typed Local Variables
    • Type is inferred by the expression used to initialize the variable
    • Only applicable to local variable
    • Variable declared using keyword 'var'
    • There should be no Type with name 'var' defined in scope. Only then type inferring will work
    • We should initialize the variable where we declaring it
    • Initialized must be an expression.
    • Local variable declaration should not include multiple variables
    • Initializer should not refer to variable itself
    • Some Examples: [ <=> is Same as ]
      var i = 5; <=> int i = 5;
      var s = "Hello";
      <=> string s = "Hello";
      var d = 1.0;
      <=> double d = 1.0;
      var numbers = new int[] {1, 2, 3};
      <=> int[] number = new int[]{1,2,3};
    • Some incorrect use of var:
      var x; // Error, no initializer to infer type from
      var y = {1, 2, 3}; // Error, collection initializer not permitted
      var z = null; // Error, null type not permitted
      var u = x => x + 1; // Error, lambda expressions do not have a type
      var v = v++; // Error, initializer cannot refer to variable itself
    • for, foreach and using (resource acquisition) can also use var. Like,
      int[] numbers = { 1, 2, 3, 4, 5 };
      foreach (var n in numbers) { //Do some thing }
    • COMMENTS
      Why do we need to use var? Everything should be Type Strict. I think this will impact performance as compiler will use some kind of intelligence to find out variable type and it will surely take up some time. This is no scripting language...man this is C#. It will just complicate things even more and add to huge list of keywords that we already have like sealed, virtual, override, abstract, new, internal etc. I don't see any use of this so called added feature.
      Please let me know your opinions.
Currently Listening To: Shadow of the day-LINKIN PARK
~eNjOy cOdinG~

299 comments:

1 – 200 of 299   Newer›   Newest»
Anonymous said...

Breer: Week 3 predictionsHow can the 2-0 Lions fare from the 0-2 Vikings on Sunday in Minnesota? NFL Network's Albert Breer picks the actual end result of every Week 3 game Not only can you buy for yourself but it is also a great gift idea for the sports fan in your life
National Hockey League begins with the demise of its predecessor league[url=http://www.officialnikebroncosjerseyshop.com/broncos+peyton+manning+authentic+jersey-c-9_17.html]Youth Black Peyton Manning Jersey[/url]
Replica NHL Jerseys the National Hockey Association (NHA)[url=http://www.officialnikebroncosjerseyshop.com/broncos+von+miller+authentic+jersey-c-9_21.html]Orange Von Miller Jersey[/url]
in 1917 They have fans and team member who are counting on them[url=http://www.officialnikebroncosjerseyshop.com/broncos+peyton+manning+authentic+jersey-c-9_17.html]Peyton Manning White Jersey[/url]
and don¡¯t want to be let down

Anonymous said...

hydrocodone online prescription generic hydrocodone xanax alcohol - buy real hydrocodone

Anonymous said...

diazepam without prescription trusted online pharmacy valium - buy valium online australia no prescription

Anonymous said...

ativan without prescription buy ativan online overnight - ativan vs xanax alzheimer's

Anonymous said...

buy tramadol in florida tramadol efectos secundarios - tramadol addiction nhs

Anonymous said...

cheap generic ativan generic version ativan - ativan overdose+hospital

Anonymous said...

order tramadol online without prescription is it legal to buy tramadol online us - order tramadol with mastercard

Anonymous said...

tramadol online buy tramadol without rx - buy tramadol no prescription cheap

Anonymous said...

buy tramadol online tramadol 50mg buy online - tramadol hcl dose

Anonymous said...

ativan for anxiety lorazepam 1 mg compared to xanax - lorazepam to buy uk

Anonymous said...

buy tramadol tramadol withdrawal onset - buy tramadol 24x7

Anonymous said...

buy tramadol buy tramadol online australia - buy tramadol from uk

Anonymous said...

buy tramadol online cod overnight buy tramadol rx - buy tramadol hcl

Anonymous said...

buy ativan online ativan side effects sedation - how long does lorazepam 1mg last

Anonymous said...

tramadol online long does 100mg tramadol last - tramadol dosage human

Anonymous said...

buy ambien online zolpidem side effects hair loss - ambien side effects hallucinations

Anonymous said...

clonazepam drug 2mg klonopin 2mg xanax - klonopin dosage mg

Anonymous said...

cheap tramadol no prescription tramadol online in europe - tramadol 50 mg info

Anonymous said...

ativan pharmacy ativan addiction how long - high from ativan

Anonymous said...

order tramadol online overnight can i buy tramadol online - buy-tramadol-online

Anonymous said...

klonopin online klonopin visual side effects - klonopin withdrawal from 1 mg

Anonymous said...

buy ambien online no prescription ambien cr nyquil - withdrawal from ambien cr

Anonymous said...

buy ambien online legally ambien 8 hours sleep - buy ambien prescription online

Anonymous said...

tramadol online where to order tramadol online - tramadol withdrawal signs

Anonymous said...

ambien sleep medication ambien walrus wikipedia - online ambien music maker

Anonymous said...

buy tramadol online cod tramadol 50/ 100 mg - tramadol for dogs constipation

Anonymous said...

buy klonopin online klonopin online cheap - buy klonopin online mastercard

Anonymous said...

buy ativan online ativan vs xanax vs klonopin - cheap ativan

Anonymous said...

generic tramadol side effects of tramadol 50mg capsules - can you really buy tramadol online

Anonymous said...

zolpidem without prescription ambien online pharmacy - ambien cr shelf life

Anonymous said...

ativan for anxiety ativan get u high - ativan buzz

Anonymous said...

tramadol 50mg order tramadol online forum - tramadol jaw pain

Anonymous said...

cheap soma online buy soma 350 mg online - soma function

Anonymous said...

tramadol no rx buy tramadol online without rx - tramadol hcl information

Anonymous said...

klonopin pill klonopin side effects during pregnancy - klonopin overdose children

Anonymous said...

tramadol online tramadol high lasts - tramadol 37.5/325 high

Anonymous said...

buy ambien online lexapro ambien drug interactions - purchase ambien no prescription

Anonymous said...

generic ambien ambien dosage based weight - ambien online india

Anonymous said...

ativan cost side effects getting off ativan - ativan side effects elderly patients

Anonymous said...

tramadol 50mg tramadol overdose 1000mg - tramadol addiction blog

Anonymous said...

generic carisoprodol soma san diego shows - drug class for soma

Anonymous said...

klonopin depression side effects of quitting klonopin - klonopin sublingual

Anonymous said...

buy tramadol online no prescription tramadol for opiate withdrawal - buy tramadol australia online

Anonymous said...

ambien pill ambien generic version - ambien side effects nih

Anonymous said...

tramadol online tramadol hcl apap - tramadol hcl 25

Anonymous said...

generic ambien ambien 74 93 - ambien side effects blurred vision

Anonymous said...

buy lorazepam ativan side effects constipation - why is ativan used for opiate withdrawal

Anonymous said...

tramadol online overnight tramadol for dogs humans - tramadol no prescription usa

Anonymous said...

order tramadol no prescription buy tramadol 200 - buy tramadol er

Anonymous said...

order ambien buy ambien no prescription - ambien cr 12.5 trip

Anonymous said...

soma online somo 650 user manual - generic soma pictures

Anonymous said...

viagra online buy now viagra 8080 - order viagra and cialis

Anonymous said...

ambien 10 mg ambien online europe - buy ambien cr online

Anonymous said...

where can i buy viagra online safely does viagra work for diabetics - generic viagra+online pharmacy+no prescription

Anonymous said...

ambien order online no prescription how to buy ambien online - retail cost generic ambien

Anonymous said...

viagra online generic online store viagra - viagra dosage by weight

Anonymous said...

tramadol generic buy tramadol online no prescription cheap - tramadol to get high

Anonymous said...

buy zolpidem online list generic ambien - ambien side effects migraine

Anonymous said...

buy tramadol online tramadol 50mg buy online - tramadol online safe

Anonymous said...

buy generic soma soma drug uses - order soma drug

Anonymous said...

discount ambien ambien side effects heart palpitations - ambien generic cost at walmart

Anonymous said...

viagra online generic viagra dangers - where to buy women's viagra

Anonymous said...

buy viagra professional cheap viagra canadian pharmacy - order viagra online australia

Anonymous said...

cheap tramadol tramadol 50mg recommended dosage - tramadol vs percocet high

Anonymous said...

buy viagra online buy viagra manila - buy viagra korea

Anonymous said...

buy cheap viagra no prescription generic viagra cvs - best place buy viagra online forum

Anonymous said...

generic ambien ambien withdrawal symptoms nightmares - ambien cr 25

Anonymous said...

buy generic viagra purchase viagra europe - viagra for women natural

Anonymous said...

generic zolpidem generic ambien qualitest - ambien abuse stories

Anonymous said...

where can i buy viagra online safely buy viagra dublin - where to buy viagra canada

Anonymous said...

where can i buy viagra online safely cheap viagra gel - cheap viagra no rx

Anonymous said...

cheapest soma soma kendrick - soma jackson ms

Anonymous said...

buy tramadol free shipping buy tramadol 50mg net - order tramadol cod saturday delivery

Anonymous said...

buy klonopin online klonopin prn anxiety - buy klonopin online no prescription

Anonymous said...

cheap viagra next day delivery viagra buy singapore - viagra online reliable

Anonymous said...

buy viagra online generic viagra available yet - generic viagra uk next day delivery

Anonymous said...

viagra pharmacy viagra for women cream - want buy generic viagra

Anonymous said...

cheap sildenafil buy legitimate viagra online - viagra half life

Anonymous said...

order viagra online without a prescription buy viagra prescription - viagra online argentina

Anonymous said...

cialis online cialis daily headache - cialis 5mg side effects

Anonymous said...

buy generic soma soma online ship texas - discount fabrics soma

Anonymous said...

buy tramadol ultram tramadol 100mg vaikutusaika - buy tramadol discover card

Anonymous said...

tramadol online overnight tramadol hcl brand name - tramadol to buy online

Anonymous said...

cialis online generic cialis ebay - buy cialis online in nz

Anonymous said...

buy viagra sample viagra canadian pharmacy reviews - viagra online xl

Anonymous said...

buy tramadol cod overnight tramadol for dogs dose - can you buy tramadol in turkey

Anonymous said...

sildenafil 100mg generic viagra online canadian pharmacy - buy viagra online los angeles

Anonymous said...

buy tramadol no prescription tramadol dosage use dogs - buy tramadol direct

Anonymous said...

buy viagra las vegas buy 1 viagra - viagra effective time

Anonymous said...

cialis online cialis online apotheke holland - cialis 100mg price

Anonymous said...

buy viagra online legally viagra online free trial - buy cheap viagra online next day delivery

Anonymous said...

where to buy tramadol online buy tramadol online overnight mastercard - tramadol withdrawal help

Anonymous said...

cialis online pharmacy cialis daily online - cialis 8cpr riv 20mg

Anonymous said...

tramadol no prescription buy tramadol in missouri - tramadol 50 mg bivirkninger

Anonymous said...

buy tramadol cod next day delivery generic tramadol for dogs - tramadol depression

Anonymous said...

propecia online buy generic propecia australia - propecia results 3 months

Anonymous said...

cheap tramadol no prescription tramadol 50mg biogaran - order tramadol with cod

Anonymous said...

buy cialis 10mg how to buy cialis online uk - cialis one a day

Anonymous said...

buy viagra online buy viagra online cheap no prescription - where to buy viagra in stores

Anonymous said...

buy cialis online safely buy original cialis online - cialis online no prescription uk

Anonymous said...

buy strattera online strattera recreational use - strattera used get high

Anonymous said...

buy tramadol online que es tramadol 50 mg - tramadol 50 mg looks like

Anonymous said...

buy viagra online paypal viagra xanax combination - generic viagra discussion forum

Anonymous said...

buy tramadol usa buy tramadol online reviews - buy tramadol online in europe

Anonymous said...

cialis online buy cheap cialis online uk - cialis online

Anonymous said...

buy generic tramadol how to buy tramadol online - tramadol online overnight shipping

Anonymous said...

buy tramadol no prescription tramadol hcl 37.5-3 tab myla - tramadol 50mg tablets

Anonymous said...

purchase tramadol tramadol for dogs dosage chart - suboxone tramadol high

Anonymous said...

buy strattera online strattera drug coupon - strattera side effects emedicine

Anonymous said...

viagra buy buy viagra canadian pharmacy - viagra kanye west

Anonymous said...

buy tramadol online cod overnight tramadol promethazine high - legal buy tramadol online united states

Anonymous said...

cheap tramadol no prescription order tramadol cod overnight - tramadol no prescription fedex

Anonymous said...

buy retin-a buy retin a micro pump - buy retin a online usa

Anonymous said...

buy tramadol overnight tramadol addiction and seizures - buy tramadol online safely

Anonymous said...

buy propecia online propecia study results - propecia cost per month

Anonymous said...

online pharmacy retin a retin a micro where to buy - retin a cream for wrinkles around the eyes

Anonymous said...

buy strattera online strattera side effects in kids - strattera dosage too high

Anonymous said...

tramadol 50mg tramadol 50 mg time release - tramadol ingredients medicine

Anonymous said...

tramadol 100 tramadol al 100mg nebenwirkungen - tramadol wiki

Anonymous said...

buy propecia online buy propecia bangkok - propecia safety

Anonymous said...

buy tramadol rx buy tramadol in usa - tramadol withdrawal wikipedia

Anonymous said...

order propecia online generic propecia singapore - generic for propecia

Anonymous said...

purchase tramadol tramadol high off - buy tramadol no prescription online

Anonymous said...

buy tramadol online tramadol 50 mg and aleve - tramadol addictive properties

Anonymous said...

tramadol 50 mg order tramadol cash delivery - tramadol 50 mg overdose

Anonymous said...

tramadol online tramadol 50mg tablets used - how to buy tramadol online overnight

Anonymous said...

buy retin-a retin-a micro gel side effects - retin-a cream is for

Anonymous said...

tramadol online no prescription tramadol 50mg street - tramadol for dogs with pancreatitis

Anonymous said...

buy tramadol online no prescription tramadol dosage guidelines - tramadol 50mg arrow

Anonymous said...

buy tramadol online tramadol addiction risk - tramadol addiction therapy

Anonymous said...

buy retin-a online retin a micro no insurance - retin a cream 40 grams

Anonymous said...

buy tramadol online buy tramadol in usa - tramadol in pregnancy

Anonymous said...

buy tramadol online tramadol dosage small dogs - tramadol online american express

Anonymous said...

tramadol 50mg tramadol 50 mg much - is tramadol generic for ultram

Anonymous said...

tramadol 50 mg tramadol 58 93 dosage - tramadol kali 083 dosage

Anonymous said...

buy tramadol online tramadol al 100mg retardtabletten nebenwirkungen - tramadol withdrawal long does last

Anonymous said...

buy tramadol tramadol dosage puppy - tramadol 50 mg ingredients

Anonymous said...

buy tramadol ultram tramadol 50 mg tablets side effects - tramadol online doctor consult

Anonymous said...

buy tramadol online tramadol 800 mg day - can you buy tramadol over the counter in usa

Anonymous said...

buy retin-a retin-a micro gel for sale - retin-a micro diary

Anonymous said...

generic strattera strattera drug com - order generic strattera

Anonymous said...

buy tramadol online tramadol 100mg caps - tramadol for dogs side effects

Anonymous said...

buy tramadol online buy tramadol legally - tramadol dosage chart

Anonymous said...

buy retin-a retin a micro during pregnancy - buy retin a in australia

Anonymous said...

buy strattera online beginning dosage strattera - strattera risks

Anonymous said...

tramadol 50mg buy tramadol overnight saturday delivery - best buy tramadol

Anonymous said...

buy strattera cheapest strattera online - strattera side effects blog

Anonymous said...

tramadol 50mg tramadol hydrochloride tablets 100mg - generic version tramadol

Anonymous said...

buy tramadol tramadol buy - tramadol online doctor consult

Anonymous said...

propecia online pharmacy order generic propecia online - propecia generic united states

Anonymous said...

tramadol online no prescription tramadol medication - tramadol ultram 50mg

Anonymous said...

tramadol online order tramadol from usa) - tramadol for dogs best price

Anonymous said...

buy tramadol online mastercard overnight tramadol for dogs 50 mg - buy tramadol online no prescription next day delivery

Anonymous said...

buy tramadol online tramadol first time dosage - tramadol for dogs safe

Anonymous said...

tramadol online pharmacy tramadol 50 mg high - tramadol trip

Anonymous said...

tramadol 100mg tramadol 50 mg and breastfeeding - pet meds tramadol 50mg

Anonymous said...

viagra online without prescription where is the cheapest place to buy generic viagra - order viagra online usa

Anonymous said...

tramadol 50mg tramadol 50 mg and alcohol - tramadol hcl 50 mg tablet r&s

Anonymous said...

tramadol 50 mg tramadol generic for ultram - tramadol hcl obat

Anonymous said...

buy tramadol tramadol 50 mg cheap - buy ultram online canada

Anonymous said...

buy tramadol tramadol high dosage - tramadol with high blood pressure

Anonymous said...

viagra online without prescription purchase viagra with paypal - buy real viagra online us

Anonymous said...

tramadol 50 mg tramadol for dogs reviews - tramadol withdrawal restless leg syndrome

Anonymous said...

cheap tramadol tramadol without prescription - tramadol hcl 93 58

Anonymous said...

buy cialis order real cialis - cialis online nz

Anonymous said...

buy tramadol buy cheap tramadol no prescription - buy tramadol an 627

Anonymous said...

viagra online without prescription viagra for women wiki - buy generic viagra online us

Anonymous said...

cheap viagra viagra online jersey - buy viagra online next day

Anonymous said...

order tramadol buy tramadol montreal - tramadol hcl snorting

Anonymous said...

viagra pills order viagra now - buy generic viagra cialis levitra

Anonymous said...

buy tramadol online no prescription buying tramadol online reviews - tramadol dosage and effects

Anonymous said...

generic cialis cialis jelly review - where to order cialis online

Anonymous said...

generic viagra viagra online pharmacy usa - viagra buy england

Anonymous said...

viagra online without prescription buy 25 mg viagra - can you buy generic viagra in us

Anonymous said...

generic cialis order cialis online no prescription - cialis online discover card

Anonymous said...

cheap cialis cialis отзывы - buy brand name cialis online

Anonymous said...

viagra online without prescription buy viagra legally us - top quality viagra online

Anonymous said...

cheap viagra buy generic viagra gel - order viagra online canadian pharmacy

Anonymous said...

generic cialis buy cialis online usa - cialis online mexico

Anonymous said...

cheap viagra best generic viagra online - is generic viagra online real

Anonymous said...

buy cialis generic cialis paypal payment - generic cialis germany

Anonymous said...

buy cialis 20mg cialis 5 mg daily side effects - cialis reviews patients

Anonymous said...

buy cialis cialis - can you buy cialis usa over counter

Anonymous said...

buy soma online buy soma medication online - soma quill stem adapter

Anonymous said...

buy cialis cialis online in usa - cialis online drugs

Anonymous said...

viagra online cheap viagra for sale us - viagra dosage and directions

Anonymous said...

buy generic cialis cialis 36 vs daily - cheap cialis with no prescription

Anonymous said...

generic cialis cialis 20 mg - cialis reviews 20 mg

Anonymous said...

buy soma online soma medication interactions - generic soma codeine

Anonymous said...

soma drug soma drug novel - soma san diego upcoming events

Anonymous said...

generic cialis order cialis online overnight - cialis online legal

Anonymous said...

buy cialis want order cialis - cialis recommended daily dosage

Anonymous said...

buy soma online soma 10 years - order watson soma online

Anonymous said...

buy cialis cialis daily available nhs - price quote+cialis

Anonymous said...

viagra online viagra use instructions - viagra online buy

Anonymous said...

buy soma online buy soma online ship to texas - ambien and soma drug interactions

Anonymous said...

cheapest soma buy cheap soma online no prescription - soma medication abuse

Anonymous said...

cheapest cialis cialis online western union - cialis daily use vs 36 hour

Anonymous said...

buy viagra can you buy viagra us - buy viagra cialis us

Anonymous said...

buy cialis eli lilly cialis price - cialis 20

«Oldest ‹Older   1 – 200 of 299   Newer› Newest»