CoreFormattableString.cs 557 B

1234567891011121314151617181920212223242526272829303132
  1. using System.IO;
  2. namespace InABox.Formatters
  3. {
  4. public class CoreFormattableString : ICoreFormattable
  5. {
  6. public string Content { get; set; }
  7. public CoreFormattableString()
  8. {
  9. }
  10. public CoreFormattableString(string content)
  11. {
  12. Content = content;
  13. }
  14. public void Write(BinaryWriter writer)
  15. {
  16. writer.Write(Content);
  17. }
  18. public void Read(BinaryReader reader)
  19. {
  20. Content = reader.ReadString();
  21. }
  22. }
  23. }