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('}');
        }
Exemple #2
0
        public Event(IChannel source, LooseDictionary data, int beginTime, int endTime) : base(data)
        {
            this.BeginTime = beginTime;
            this.EndTime   = endTime;

            this.Source = source;
        }
Exemple #3
0
 protected MetadataObject(LooseDictionary data)
 {
     this.LooseData = data;
     this.Name      = data["name"].ToString();
 }
Exemple #4
0
 protected Event(IChannel source, LooseDictionary data) : base(data)
 {
     this.SetLoose();
     this.Source = source;
 }