This question already has answers here:
What are the correct version numbers for C#?
(13 answers)
Closed 8 years ago.
I am confused with both the C# version and .NET framework version. In other words, I want to know the relationship with C# version and .NET framework. E.g: which is C# version in .NET framework 3.0?
I am not sure what your actual question is, but if it is what are the current versions..
C#: 3.0
.NET Framework: 3.5
You might also want to take a look at this breakdown chart. It provides the Framework, language and CLR relations.
C# 1.0 - Managed Code
C# 2.0 - Generics, Nullable Types, Anonymous Delegates, Partial Classes / Methods
C# 3.0 - LINQ, Lambda Expressions, Implicit Variable Typing, Streamlined Object Initialization
// Related? somewhat perhaps
.net 2 C# 2
.net 3 C# 2
.net 3.5 C# 3
Related
This question already has answers here:
Does C# 6.0 work for .NET 4.0?
(5 answers)
Closed 6 years ago.
Is it possible to use Roslyn compiler and new features of C# 6.0 with old versions of .NET Runtime (for example, .NET 4.0)?
For example, I want use the expression-bodied members (int S => x + y; instead of int S { get { return x + y; } }) in .NET 4.0 application.
The new C# 6.0 features don't depend upon framework support so yes, you an app compiled with the C# 6.0 compiler will run on .NET 4.0, assuming of course you specify you are targeting .NET 4.0 in your project file in the first place.
As of now Roslyn C# compiler and tooling cannot run on .NET 4.0
You can certainly cross-compile for .NET 4.0, but to run the compiler itself you need at least .NET 4.5
This question already has answers here:
Does C# 6.0 work for .NET 4.0?
(5 answers)
Closed 6 years ago.
Is it possible to use Roslyn compiler and new features of C# 6.0 with old versions of .NET Runtime (for example, .NET 4.0)?
For example, I want use the expression-bodied members (int S => x + y; instead of int S { get { return x + y; } }) in .NET 4.0 application.
The new C# 6.0 features don't depend upon framework support so yes, you an app compiled with the C# 6.0 compiler will run on .NET 4.0, assuming of course you specify you are targeting .NET 4.0 in your project file in the first place.
As of now Roslyn C# compiler and tooling cannot run on .NET 4.0
You can certainly cross-compile for .NET 4.0, but to run the compiler itself you need at least .NET 4.5
This question already has answers here:
LINQ on the .NET 2.0 Runtime
(8 answers)
Closed 9 years ago.
I made an application in .net framework 4.0, visual studio 2010, but due to some reason i changed the framework from 4.0 to 2.0 but now i am getting error that
The type or namespace name 'Linq' does not exist in the namespace 'System' (are you
missing an assembly reference?)
LINQ is very much used in this project, now i want to know that is there any way to use LINQ with .net 2.0.Need help.Thanks.
Linq is not supported in dotnet 2.0
You can use LinqBridge, which provides an alternative implementation of the Linq to Objects operators. (note: it works only for Linq to Objects, not for Linq to XML or Linq to XML...)
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How do the .NET Framework, CLR and Visual Studio version numbers relate to each other?
Recently I was searching for a documentation on CLR, C# version mapping right from 1.0 to 4.0, but didn't find any good resources. It would be very helpful, If anyone could provide me this information or link to any resources.
The release schedule was as follows:-
C# 1 + CLR 1
C# 2 + CLR 2
C# 3 + CLR 2
C# 4 + CLR 4
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Pluralize - Singularize
The C# 4.0 (maybe older versions, but I've only tested with 4.0) Linq-to-SQL generator will pluralize your table names; even tough plurals like Territory. It knows that Territories is the plural. Is there anyway to access this pluralization function?
System.Data.Entity.Design.PluralizationServices.PluralizationService
EDIT Linking the (older) answer in the (older) question, as eglasias suggests. Go forth and upvote, he deserves the rep.
I'm not sure the Linq to SQL inflector is publicly accessible, but if you need an inflector you could use SubSonic's inflector, NCommon, uNhAddins, Castle ActiveRecord, etc.