lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Powell ...@aaron-powell.com>
Subject RE: [Lucene.Net] var
Date Sat, 07 May 2011 07:41:47 GMT
Yes it's a C# 3 feature, but the C# 3 compiler (shipped in VS 2008) can compile C# 2.0 and
C# 3.0 assemblies.
Quick test: http://www.aaron-powell.com/get/var-csharp-2.PNG

I don't have VS 2008 though, this test was done with VS 2010 using the multitargetting features

Aaron Powell
MVP - Internet Explorer (Development) | Umbraco Core Team Member | FunnelWeb Team Member

http://apowell.me | http://twitter.com/slace | Skype: aaron.l.powell | MSN: aazzap@hotmail.com


-----Original Message-----
From: Prescott Nasser [mailto:geobmx540@hotmail.com] 
Sent: Saturday, 7 May 2011 5:32 PM
To: lucene-net-dev@lucene.apache.org
Subject: RE: [Lucene.Net] var




~Prescott Nasser
prescott.nasser@hotmail.com
650.208.4205

It's a 3.0 keyword, can't be used pre C# 3.0
 

> From: me@aaron-powell.com
> To: lucene-net-dev@lucene.apache.org
> Date: Sat, 7 May 2011 07:28:36 +0000
> Subject: RE: [Lucene.Net] var
> 
> My understanding of the 'var' keyword is just C# syntactic sugar, which the compiler
will translate into the actual CLR type for variable assignment, so the compiler is capable
of compiling CLR 2.0 assemblies anyway.
> 
> Aaron Powell
> MVP - Internet Explorer (Development) | Umbraco Core Team Member | FunnelWeb Team Member
> 
> http://apowell.me | http://twitter.com/slace | Skype: aaron.l.powell | MSN: aazzap@hotmail.com
> 
> -----Original Message-----
> From: Michael Herndon [mailto:mherndon@wickedsoftware.net] 
> Sent: Saturday, 7 May 2011 3:56 PM
> To: lucene-net-dev@lucene.apache.org
> Subject: Re: [Lucene.Net] var
> 
> I think that is going to depend on if we are continuing .net 2.0 / C# 2.0 support or
dropping it.
> 
> 
> On Sat, May 7, 2011 at 1:19 AM, Prescott Nasser <geobmx540@hotmail.com>wrote:
> 
> >
> > Where do we stand on use of the var keyword?
> > 		 	   		  

Mime
View raw message