oliverbooth.dev/OliverBooth/Data/Blog/Rss/BlogItemGuid.cs

19 lines
383 B
C#
Raw Normal View History

2023-08-20 13:23:50 +00:00
using System.Xml.Serialization;
namespace OliverBooth.Data.Blog.Rss;
public struct BlogItemGuid
{
public BlogItemGuid()
{
}
[XmlAttribute("isPermaLink")]
public bool IsPermaLink { get; set; } = false;
[XmlText]
public string Value { get; set; } = default!;
public static implicit operator BlogItemGuid(string value) => new() { Value = value };
}