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.
- 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~
buy tramadol online tramadol hcl xr 100mg – tramadol t7
LikeLike
buy tramadol buy tramadol ship to florida – generic ultram online
LikeLike
buy tramadol online buy tramadol in florida – no prescription tramadol overnight delivery
LikeLike
buy tramadol tramadol for dogs safe – tramadol vs oxycodone
LikeLike
cheap tramadol 350 mg tramadol high – order tramadol on line
LikeLike
order tramadol online mastercard buy tramadol cod delivery – buy tramadol buy cod
LikeLike
buy retin-a without prescription retin a cream tretinoin 0.1 – buy retin a micro amazon
LikeLike
cheap tramadol tramadol 50 mg buy online – cheap tramadol online
LikeLike
retin a online retin a micro gel yahoo answers – buy retin a micro online no prescription
LikeLike
where to buy tramadol tramadol 50 mg with ibuprofen – buy tramadol online forum
LikeLike
tramadol 50mg tramadol hydrochloride addiction – buy tramadol online no rx
LikeLike
buy retin-a without prescription retin-a cream 0.05 for acne scars – retin a micro side effects rash
LikeLike
cheap tramadol tramadol risks – tramadol online next day delivery
LikeLike
tramadol no rx buy tramadol online from mexico – tramadol hcl user reviews
LikeLike
buy tramadol online with mastercard buy tramadol saturday delivery – tramadol withdrawal help
LikeLike
tramadol 50 mg buy tramadol online legit – tramadol urine test
LikeLike
cialis drug cialis not working – cialis daily generic
LikeLike
buy tramadol 100mg can you get tramadol online legally – tramadol cod money order
LikeLike
buy tramadol online buy tramadol extended release – buy tramadol 6914
LikeLike
xanax online xanax overdose memory loss – xanax pills dosage
LikeLike
buy xanax bars online no prescription generic xanax round blue pill – generic xanax wiki
LikeLike
xanax online xanax overdose toxicity – non-prescription xanax online
LikeLike
generic xanax online xanax withdrawal from . 25 mg – white round 2mg xanax
LikeLike
tramadol without prescription tramadol dosage per day – tramadol hcl en espanol
LikeLike
buy tramadol tramadol medication no prescription – generic tramadol online no prescription
LikeLike
tramadol online tramadol ultram alcohol – tramadol information
LikeLike
tramadol online tramadol hcl 50 mg recreational use – can you buy tramadol in greece
LikeLike
generic xanax xanax withdrawal medication – xanax dosage in children
LikeLike
buy tramadol online no prescription cod safe order tramadol online – tramadol snort
LikeLike
tramadol online tramadol no prescription next day delivery – tramadol 50 mg mfg zydus
LikeLike
carisoprodol 350 mg carisoprodol 350 mg review – carisoprodol 350 mg muscle relaxer
LikeLike
tramadol online can you buy tramadol over the counter in usa – buy tramadol online nz
LikeLike
tramadol online tramadol hcl 50 mg generic ultram – tramadol 50mg capsules dosage
LikeLike
where to buy tramadol online legal order tramadol online – cheap tramadol overnight delivery
LikeLike
buy cialis from canada buy cheap cialis from us – cialis .99
LikeLike
buy generic cialis cialis wholesale price – buy cialis mexico
LikeLike
buy cialis online buy cialis professional – cialis benefits
LikeLike
http://landvoicelearning.com/#62431 tramadol no prescription overnight cod – tramadol er 100mg side effects
LikeLike
buy tramadol tramadol apap 37.5 dosage – how to buy tramadol online overnight
LikeLike
buy tramadol online where to buy tramadol online – tramadol 750
LikeLike
buy klonopin online klonopin withdrawal and nausea – 2 mg klonopin high
LikeLike
buy tramadol online tramadol for dogs no rx – tramadol dose get high
LikeLike
buy klonopin online klonopin 2 mg erowid – klonopin rebound anxiety
LikeLike
carisoprodol 350 mg carisoprodol 350mg tablets price – many mg carisoprodol overdose
LikeLike
buy generic tramadol no prescription buy tramadol cash on delivery – buy tramadol180
LikeLike
http://www.njbic.org/online/buytramadol/#8507 buy generic tramadol online – tramadol 100 mg
LikeLike
cheap tramadol buy cheap tramadol – buy tramadol usa
LikeLike
For his or her supplementation comprising nutritional supplements, enzymes along with
essential nutrient elements together can help you to wipe off night bags under eyes.
Do not forget to you recognize family group on this .
very good Peer to peer web interfaces! Though you still might not want it given that DeLonghi espresso machine house owners
hold the costly cost akin to return back available. Move non-chemical come across one near!
A wide range of gluten free pastries pots and pans trust in a person's entire flour to be able to an food.
Here is my web-site; turkish coffee automatic
LikeLike
can you buy ambien at walmart buy ambien cr online no prescription – order ambien from india
LikeLike