SvgContentNode.cs 562 B

12345678910111213141516171819202122
  1. #pragma warning disable
  2. namespace Svg
  3. {
  4. public class SvgContentNode : ISvgNode
  5. {
  6. public string Content { get; set; }
  7. /// <summary>
  8. /// Create a deep copy of this <see cref="ISvgNode"/>.
  9. /// </summary>
  10. /// <returns>A deep copy of this <see cref="ISvgNode"/></returns>
  11. public ISvgNode DeepCopy()
  12. {
  13. // Since strings are immutable in C#, we can just use the same reference here.
  14. return new SvgContentNode { Content = this.Content };
  15. }
  16. }
  17. }
  18. #pragma warning restore