public void Resolve(TagMaster json) { foreach (KeyValuePair <string, ITag> property in Properties.ToList()) { if (property.Value is TagCustom) { Properties[property.Key] = json.ConvertToValue(((TagCustom)property.Value).Value); } if (Properties[property.Key] is TagCompound) { ((TagCompound)Properties[property.Key]).Resolve(json); } if (Properties[property.Key] is TagList) { ((TagList)Properties[property.Key]).Resolve(json); } } }
public void Resolve(TagMaster json) { for (int i = 0; i < Content.Count; i++) { ITag tag = Content[i]; if (tag is TagCustom) { Content[i] = tag = json.ConvertToValue(((TagCustom)tag).Value); } if (tag is TagCompound) { ((TagCompound)tag).Resolve(json); } if (tag is TagList) { ((TagList)tag).Resolve(json); } } }