protected internal override void AddSequence(StringBuilder sbr, string indent) { string empty = " "; sbr.Append(indent); sbr.Append("<dict>"); sbr.Append(LSystem.LS); ArrayMap.Entry[] entrys = _dict.ToEntrys(); int size = entrys.Length; for (int i = 0; i < size; i++) { NSString key = (NSString)entrys[i].GetKey(); NSObject val = ObjectForKey(key); sbr.Append(indent + empty); sbr.Append("<key>"); sbr.Append(key); sbr.Append("</key>"); sbr.Append(LSystem.LS); val.AddSequence(sbr, indent + empty); sbr.Append(LSystem.LS); } sbr.Append(indent); sbr.Append("</dict>"); }
protected internal override void AddSequence(StringBuilder sbr, string indent) { sbr.Append(indent); sbr.Append("<array>"); sbr.Append(LSystem.LS); for (int i = 0; i < _list.Size(); i++) { NSObject nso = (NSObject)_list.Get(i); nso.AddSequence(sbr, indent + " "); sbr.Append(LSystem.LS); } sbr.Append(indent); sbr.Append("</array>"); }