internal void Update <T>(ref T t) { Value = Struct.GetValue(t); Address = Struct.GetAddress(ref t); Conditions.AssertDebug(Value == Address.ReadAny(Value.GetType())); }
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); }