public XElement Serialize(MessageLineBreak messageLineBreak, string elementName = "lineBreak") { messageLineBreak.ThrowIfNull("messageLineBreak"); elementName.ThrowIfNull("elementName"); return new XElement(elementName); }
public byte[] Serialize(MessageLineBreak messageLineBreak) { messageLineBreak.ThrowIfNull("messageLineBreak"); return new CompactSerializer().Serialize(); }