public void ComposeNull() { var writerContext = new WriterNull(true); foreach (var decObj in Database.List) { Serialization.ComposeElement(WriterNodeNull.Start(writerContext), decObj, decObj.GetType(), isRootDec: true); } }
/// <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)); }