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.
The method 'name' is not a generic method. If you intended an expression list, use parentheses around the < expression.
This error is generated when your code contains an expression list without parentheses.
The following example generates CS0471:
// CS0471.cs
// compile with: /t:library
class Test
{
public void F(bool x, bool y) {}
public void F1()
{
int a = 1, b = 2, c = 3;
F(a<b, c>(3)); // CS0471
// To resolve, try the following instead:
// F((a<b), c>(3));
}
}
Napomena
This compiler error is no longer used in Roslyn. The previous example should compile successfully.
Povratne informacije za .NET
.NET je projekat otvorenog koda. Izaberite vezu da biste pružili povratne informacije: