Exemplo n.º 1
0
        internal void Update <T>(ref T t)
        {
            Value   = Struct.GetValue(t);
            Address = Struct.GetAddress(ref t);

            Conditions.AssertDebug(Value == Address.ReadAny(Value.GetType()));
        }
Exemplo n.º 2
0
        private void UnloadMap(Type type, FieldInfo mapField)
        {
            var map = m_typeImportMaps[type];

            map.Clear();

            m_typeImportMaps.Remove(type);

            mapField.SetValue(null, null);

            // Sanity check
            Conditions.AssertDebug(!m_typeImportMaps.ContainsKey(type));
            Conditions.AssertDebug(mapField.GetValue(null) == null);
        }