Ejemplo n.º 1
0
        public void GetIndexOfArray()
        {
            int[]      dummy      = new int[] { 10, 20, 30 };
            UnsafeCode unsafeCode = new UnsafeCode();

            Assert.Equal(20, unsafeCode.GetElement(dummy, 1));
            Assert.Equal(30, unsafeCode.GetElement(dummy, 2));
        }
Ejemplo n.º 2
0
	public unsafe void AssignPointerValue(UnsafeCode.FieldContainer container)
	{
		container.field = null;
	}