Wednesday, April 9, 2014

Free ebook - OWASP Top 10 for ASP.NET Developers [PDF Download]

Free ebook - OWASP Top 10 for ASP.NET Developers [PDF Download]

Download Free PDF - OWASP Top 10 security threats for ASP.NET Developers here.


Wednesday, April 9, 2014 by The Opening Batsman · 0

var Vs dynamic - Difference [C#] [ASP.NET]

Here's an important interview question asked mostly in interviews of top companies like TCS, Infosys, Capgemini, Cognizant, JP Morgan, Nomura, etc

var dynamic
Introduced in C# 3.0
Introduced in C# 4.0
Statically typed – This means the type of variable declared is decided by the compiler at compile time.
Dynamically typed - This means the type of variable declared is decided by the compiler at runtime time.
Need to initialize at the time of declaration.
e.g., var str=”I am a string”;
Looking at the value assigned to the variable str, the compiler will treat the variable str as string.
No need to initialize at the time of declaration.
e.g., dynamic str; 
str=”I am a string”; //Works fine and compiles
str=2; //Works fine and compiles
Errors are caught at compile time.
Since the compiler knows about the type and the methods and properties of the type at the compile time itself
Errors are caught at runtime 
Since the compiler comes to about the type and the methods and properties of the type at the run time.
Visual Studio shows intellisense since the type of variable assigned is known to compiler.
Intellisense is not available since the type and its related methods and properties can be known at run time only

e.g., var obj1;
will  throw a compile error since the variable is not initialized. The compiler needs that this variable should be initialized so that it can infer a type from the value.
e.g., dynamic obj1; 
will compile;
e.g. var obj1=1;
will compile 
var obj1=” I am a string”;
will throw error since the compiler has already decided that the type of obj1 is System.Int32 when the value 1 was assigned to it. Now assigning a string value to it violates the type safety.
e.g. dynamic obj1=1;
will compile and run 
dynamic obj1=” I am a string”; 
will compile and run since the compiler creates the type for obj1 as System.Int32 and then recreates the type as string when the value “I am a string” was assigned to it.
This code will work fine. 

by The Opening Batsman · 0

Free Ebook - Visual Studio 2013 - Introduction [PDF Download]

Syncfusion is giving away free ebook of Visual Studio 2013.

Download the free ebook for Visual Studio 2013 Succintly here.

Visual Studio 2013 is the latest version of the popular IDE - Visual Studio from Microsoft with major improvements.

by The Opening Batsman · 0

Tuesday, October 4, 2011

Downloads

Tuesday, October 4, 2011 by The Opening Batsman · 0

Thursday, September 22, 2011

Travel Without Printout of E-Tickets

Travel Without Printout of E-Tickets - Travel with Electronic Tickets


Good News for all train passengers 


An Appeal to passengers



Carry your tickets in electronic mode on
-Laptop
-Mobile
-IpadEnvironment Friendly


Must carry a valid ID


Save Paper


We can almost save 3 lakh A4 size paper every day.


This is a great initiative by the Indian Railways to allow the passengers to not carry the e-ticket & simply take a screen-shot of the e-ticket & display it through laptops/palmtops/ Mobile phone which will be referred as Virtual Reservation Message (VRM).

As we all know about the Electronic Reservation Slip (ERS) - The printout in standard specified Performa containing reservation particulars, and instructions for use which can be used by the passenger along with the relevant authorizedIdentification, as travel authority for performing the journey.

 So from onwards if you are traveling by train, then ERS/VRM along with any one of the eight prescribed ID proofs in original and the indication of the passenger(s)' name(s) in the Reservation Chart will authorize the passenger to travel.


VRM combined with valid photo-id in original will be treated as an instrument on par with the ERS.
 
ERS/VRM along with one of the eight prescribed proofs of identity in original will also authorize the passenger to enter the platform on the day of journey and he/she will not be required to purchase platform ticket. ERS/VRM along with original id proof will be required to be produced on demand of Ticket Checking Staff on the platform.  


Hope this information will be helpful.


Reference - https://www.irctc.co.in



Thursday, September 22, 2011 by The Opening Batsman · 0

Monday, September 19, 2011

Fastest growing web startups in India

List of Fastest growing web startups in India

Fastest growing web startups in India

Monday, September 19, 2011 by The Opening Batsman · 0

What's New in .NET 4.5

by The Opening Batsman · 0

All Rights Reserved DotNetAnna | Blogger Template by Bloggermint