Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-12-03Make Main method publicMarek Safar
2008-02-18Removed deprecated -langversion:linqMarek Safar
svn path=/trunk/mcs/; revision=96063
2007-06-19Add a test for array foreachMarek Safar
svn path=/trunk/mcs/; revision=80140
2007-05-08This code is contributed under the MIT X11 licenseScott Thomas
The following enables support for several C# 3.0 language features: * gmcs/cs-parser.jay: Added support for C# 3.0 language features: Variable type inference (the "var" keyword) Anonymous types Array type inference Object initialization Collection initialization * mcs/cs-tokenizer.cs: Added support for the "var" keyword. * mcs/ecore.cs: Refactored TypeLookupExpression.DoResolveAsTypeStep(). Added VarExpr class to facilitate type inferencing. * mcs/class.cs: Added IDictionary field AnonymousTypes to TypeContainer to support anonymous types. * mcs/assign.cs: Added support for type inferencing and initialization. * mcs/anonymous.cs: Added AnonymousClass class to enable anonymous types. * mcs/expression.cs: Added implicit array support to ArrayCreation. Added 5 types and 1 interface: IInitializable Implementing classes can inject initializing statements after object instantiation. Initializer Stores data for object initialization. AnonymousType An expression for anonymous types. AnonymousTypeParameter Stores data about an anonymous type's field. NewInitialize An expression for object initialization. CollectionInitialize An expression for collection initialization. * mcs/statement.cs: Added "var" keyword support to the foreach, using, and fixed statements. * tests/gtest-anontype-01.cs: Tests anonymous types * tests/gtest-anontype-02.cs: Tests anonymous types initialized with local variables * tests/gtest-anontype-03.cs: Tests anonymous types initialized with object members * tests/gtest-anontype-04.cs: Tests anonymous types initialized with a mix of literals, local variables and object members * tests/gtest-anontype-05.cs: Tests anonymous type consolidation * tests/gtest-collectioninit-01.cs: New test for collection initialization * tests/gtest-implicitarray-01.cs: New test for implicit arrays * tests/gtest-initialize-01.cs: Tests object initialization * tests/gtest-var-01.cs: New test for variable type inference - the "var" keyword - when used with primitive types assigned to local variables * tests/gtest-var-02.cs: Testing the var keyword when assigning a user-defined type to a local variable * tests/gtest-var-03.cs: Tests the var keyword when using the foreach statement with an array * tests/gtest-var-04.cs: Tests the var keyword when using the foreach statement with generic collections * tests/gtest-var-05.cs: Tests the var keyword when using the "using" statement * tests/gtest-var-06.cs: Tests the var keyword when using the "fixed" statement svn path=/trunk/mcs/; revision=76889