C# syntax to initialize custom class/objects through constructor params in array? Try adding square brackets after new MyClass and a semi-colon at the end