private void ResolveInverseReferences() { foreach (KeyValuePair <uint, ObjectInfo> pair in this.objects) { foreach (ReferenceInfo info in pair.Value.references) { BackReferenceInfo item = new BackReferenceInfo { parentObject = pair.Value, fieldInfo = info.fieldInfo }; info.referencedObject.inverseReferences.Add(item); } } }
private void ReadUnityObjects(BinaryReader reader) { uint num; while ((num = reader.ReadUInt32()) != 0) { if (this.objects.ContainsKey(num)) { BackReferenceInfo item = new BackReferenceInfo { parentObject = this.kUnity, fieldInfo = new FieldInfo(this.objects[num].typeInfo.name) }; this.objects[num].inverseReferences.Add(item); } } }
private void ResolveInverseReferences() { foreach (KeyValuePair<uint, ObjectInfo> pair in this.objects) { foreach (ReferenceInfo info in pair.Value.references) { BackReferenceInfo item = new BackReferenceInfo { parentObject = pair.Value, fieldInfo = info.fieldInfo }; info.referencedObject.inverseReferences.Add(item); } } }