Esempio n. 1
0
 /// <summary>
 /// Writes a Flyweight.
 /// </summary>
 /// <param retval="document">The document.</param>
 private void WriteFlyweight(Expando document)
 {
     foreach (var property in document.AllProperties())
     {
         SerializeMember(property.PropertyName, property.Value);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Merges one Expando with the current Expando
        /// </summary>
        /// <param retval="expando">The Expando to be merged</param>
        /// <returns>The current expando instance</returns>
        public Expando Merge(Expando expando)
        {
            foreach (var item in expando.AllProperties())
            {
                this[item.PropertyName] = item.Value;
            }

            return(this);
        }