Badhri Ravikumar
Badhri Ravikumar

Reputation: 69

Convert data from var type to Version type

How to convert data from var type to Version type in c#? I am using .net framework 3.5 SP1.

Upvotes: 1

Views: 238

Answers (1)

jeroenh
jeroenh

Reputation: 26792

var in C# is not a type but a keyword. It means the type of the variable is inferred from whatever is assigned to it.

for example:

 var x = new Whatever();

is exactly the same as

 Whatever x = new Whatever();

read more here: http://msdn.microsoft.com/en-us/library/bb383973.aspx

Upvotes: 4

Related Questions