Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What framework introduced c# version 1.2

Tags:

c#

I've got a copy of the Word document "C# Language Specification Version 1.2" and was wondering in which framework this was introduced. I can't remember there is something like .NET Framework 1.2

like image 608
doekman Avatar asked Feb 05 '26 09:02

doekman


2 Answers

C# 1.2 was introduced in .NET v1.1. I have very little idea why, to be honest, and I've never seen a C# 1.1 specification. It's possible that it had something to do with an ECMA spec revision, although that has somewhat separate version numbers anyway.

There weren't many changes in 1.2 compared with 1.0. One important one was that as of v1.2 foreach calls Dispose on the iterator at the end in a finally block, if the iterator implements IDisposable.

See also "What are the correct version numbers for C#?"

like image 51
Jon Skeet Avatar answered Feb 07 '26 23:02

Jon Skeet


It was in .net 1.1 I've no ideas why the they called it 1.2

like image 44
Johnno Nolan Avatar answered Feb 07 '26 23:02

Johnno Nolan