Пример #1
0
        public void ComposeNull()
        {
            var writerContext = new WriterNull(true);

            foreach (var decObj in Database.List)
            {
                Serialization.ComposeElement(WriterNodeNull.Start(writerContext), decObj, decObj.GetType(), isRootDec: true);
            }
        }
Пример #2
0
        /// <summary>
        /// Runs the Null writer, which is mostly useful for performance testing.
        /// </summary>
        public static void WriteNull <T>(T target)
        {
            var writerContext = new WriterNull(false);

            Serialization.ComposeElement(WriterNodeNull.Start(writerContext), target, target != null ? target.GetType() : typeof(T));
        }