Extending expression-based syntax for creating object instances

Syntax for creating object instances utilizing expressions instead of statements. A syntax component facilitates extension of conventional object-creation-expression syntax. An initializer component provides for initialization of a newly-created entity via object and collection initializers. The ini...

Full description

Saved in:
Bibliographic Details
Main Authors KULKARNI DINESH C, MEIJER HENRICUS JOHANNES MARIA, HALLAM PETER A, KATZENBERGER GARY S, BOLOGNESE LUCA, HEJLSBERG ANDERS, WARREN MATTHEW J
Format Patent
LanguageEnglish
Published 19.10.2010
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:Syntax for creating object instances utilizing expressions instead of statements. A syntax component facilitates extension of conventional object-creation-expression syntax. An initializer component provides for initialization of a newly-created entity via object and collection initializers. The initializer component provides initialization of the newly-created entity utilizing an object initializer where the object initializer specifies values for one or more fields or properties of the newly-created entity which is an object, and consists of a sequence of member initializers enclosed by tokens and separated by commas. The initializer component can also provides initialization of the newly-created entity utilizing a collection initializer when the underlying object implements a certain interface or implements a certain pattern. An overloading constructor can be called as part of the initialization process. In another aspect, code inferencing is disclosed whereby given a type, the corresponding code can be inferred by the compiler and inserted for compiling by a compiler.
Bibliography:Application Number: US20050193584