Skip to content

Commit 58008a1

Browse files
committed
Initialize properties with default values in MediaThumbnail and MediaRssDocument classes
1 parent 8565eea commit 58008a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/X.Web.MRSS/MediaRssDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ public MediaRssDocument()
1919
[XmlElement("channel")]
2020
public MediaRssChannel Channel { get; set; }
2121

22-
public string Version { get; set; }
22+
public string Version { get; set; } = "2.0";
2323
}

src/X.Web.MRSS/Structure/MediaThumbnail.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ public record MediaThumbnail
2323
/// <summary>
2424
/// Format "H:M:S.h" or "S.h"
2525
/// </summary>
26-
public string Time { get; set; }
26+
public string Time { get; set; } = "";
2727
}

0 commit comments

Comments
 (0)