Bilješka
Pristup ovoj stranici zahtijeva provjeru vjerodostojnosti. Možete pokušati da se prijavite ili promijenite direktorije.
Pristup ovoj stranici zahtijeva provjeru vjerodostojnosti. Možete pokušati promijeniti direktorije.
The type of local declared in a fixed statement must be a pointer type
The variable that you declare in a fixed statement must be a pointer. For more information, see Unsafe Code and Pointers.
The following sample generates CS0209:
// CS0209.cs
// compile with: /unsafe
class Point
{
public int x, y;
}
public class MyClass
{
unsafe public static void Main()
{
Point pt = new Point();
fixed (int i) // CS0209
{
}
// try the following lines instead
/*
fixed (int* p = &pt.x)
{
}
fixed (int* q = &pt.y)
{
}
*/
}
}
.NET povratne informacije
.NET je projekat otvorenog koda. Odaberite vezu za pružanje povratnih informacija: