private static void SerializeDictionary(StringBuilder str, LooseDictionary dict) { str.Append('{'); List <string> keys = new List <string>(dict.Keys); keys.Sort(); bool comma = false; foreach (string key in keys) { if (comma) { str.Append(','); } comma = true; SerializeString(str, key); str.Append(':'); SerializeObject(str, dict[key]); } str.Append('}'); }
public Event(IChannel source, LooseDictionary data, int beginTime, int endTime) : base(data) { this.BeginTime = beginTime; this.EndTime = endTime; this.Source = source; }
protected MetadataObject(LooseDictionary data) { this.LooseData = data; this.Name = data["name"].ToString(); }
protected Event(IChannel source, LooseDictionary data) : base(data) { this.SetLoose(); this.Source = source; }