Get date online c#
The void keyword declares that Main has no return value. In this case, when the compiler sees use of the Console type later in the source code, it tries to find a type named Console, first in the current assembly, followed by all referenced assemblies. This was a design decision by the language's lead architect to avoid complication and simplify architectural requirements throughout CLI. In general, it is not always possible to create an instance of a reference type, nor to copy an existing instance, or perform a value comparison on two existing instances, though specific reference types can provide such services by exposing a public constructor or implementing a corresponding interface such as ICloneable or IComparable. Libraries[ edit ] The C specification details a minimum set of types and class libraries that the compiler expects to have available.