8.13. Object Creation Operator

The new operator is used to create new objects, value types, or structs. This operator cannot be overloaded.

object o = new object();
int ii = new int();

Get .NET for Java Developers: Migrating to C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.