Ejemplo n.º 1
0
        public static void Main()
        {
            var c = new SequentialClassData();

            c.used = 1;
            if (Marshal.SizeOf(c) != 8)
            {
                throw new ApplicationException();
            }
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            var c = new SequentialClassData();

            c.used = 1;
            if (Marshal.SizeOf(c) != 8)
            {
                throw new ApplicationException();
            }

            _field = null;

            typeof(UnallocatedButReferencedWithReflectionSequentialClassData).ToString();

            if (string.Empty.Length > 0)
            {
                _otherField.used = 123;
            }
        }