12345678910111213141516171819202122 |
- #pragma warning disable
- namespace Svg
- {
- public class SvgContentNode : ISvgNode
- {
- public string Content { get; set; }
- /// <summary>
- /// Create a deep copy of this <see cref="ISvgNode"/>.
- /// </summary>
- /// <returns>A deep copy of this <see cref="ISvgNode"/></returns>
- public ISvgNode DeepCopy()
- {
- // Since strings are immutable in C#, we can just use the same reference here.
- return new SvgContentNode { Content = this.Content };
- }
- }
- }
- #pragma warning restore
|