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
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#?"
It was in .net 1.1 I've no ideas why the they called it 1.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With