IntPtr
将 a的值与 a进行比较的正确方法是int
什么?
IntPtr ContainerBaseAdress = ReadmemoryProperply.ReadProcessPointer(Tibia.Handle, ContainerPointer);
if (ContainerBaseAdress.ToInt32() == 51)
{
//Executable code
}
或者
IntPtr ContainerBaseAdress = ReadmemoryProperply.ReadProcessPointer(Tibia.Handle, ContainerPointer);
if (ContainerBaseAdress == (IntPtr)51)
{
//Executable code
}
或者
IntPtr ContainerBaseAdress = ReadmemoryProperply.ReadProcessPointer(Tibia.Handle, ContainerPointer);
if (ContainerBaseAdress == new IntPtr(51))
{
//Executable code
}
或者基本上,将 IntPtr 的值与 int 进行比较的正确方法是什么。