public override JSONNode this[string aKey] { get { bool flag = this.m_Dict.ContainsKey(aKey); JSONNode result; if (flag) { result = this.m_Dict[aKey]; } else { result = new JSONLazyCreator(this, aKey); } return(result); } set { bool flag = this.m_Dict.ContainsKey(aKey); if (flag) { this.m_Dict[aKey] = value; } else { this.m_Dict.Add(aKey, value); } } }
public override JSONNode this[int aIndex] { get { bool flag = aIndex < 0 || aIndex >= this.m_List.Count; JSONNode result; if (flag) { result = new JSONLazyCreator(this); } else { result = this.m_List[aIndex]; } return(result); } set { bool flag = aIndex < 0 || aIndex >= this.m_List.Count; if (flag) { this.m_List.Add(value); } else { this.m_List[aIndex] = value; } } }