Napomena
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da se prijavite ili da promenite direktorijume.
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da promenite direktorijume.
Can only use array initializer expressions to assign to array types. Try using a new expression instead.
Syntax that is appropriate to initialize an array was used in the declaration of a non-array.
The following sample generates CS0622:
// CS0622.cs
using System;
public class Test
{
public static void Main ()
{
Test t = { new Test() }; // CS0622
// Try the following instead:
// Test[] t = { new Test() };
}
}
Povratne informacije za .NET
.NET je projekat otvorenog koda. Izaberite vezu da biste pružili povratne informacije: