Re: [как бы этюд] Забраться в if...
От: Shvedskiy  
Дата: 21.07.09 10:05
Оценка: 12 (1)
Можно так:

            bool[] b = {false};
            System.Runtime.InteropServices.GCHandle h = System.Runtime.InteropServices.GCHandle.Alloc(b, System.Runtime.InteropServices.GCHandleType.Pinned);
            IntPtr ptr = h.AddrOfPinnedObject();
            System.Runtime.InteropServices.Marshal.WriteByte(ptr, 255);
            h.Free();
            GetData(null, b[0]);
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.