diff --git a/Microsoft.Toolkit.Uwp.Notifications/Common/EnumFormatter.cs b/Microsoft.Toolkit.Uwp.Notifications/Common/EnumFormatter.cs
index 197b0c8ef46..d7271537450 100644
--- a/Microsoft.Toolkit.Uwp.Notifications/Common/EnumFormatter.cs
+++ b/Microsoft.Toolkit.Uwp.Notifications/Common/EnumFormatter.cs
@@ -6,51 +6,52 @@
#nullable enable
-namespace Microsoft.Toolkit.Uwp.Notifications;
-
-///
-/// A helper class that can be used to format values.
-///
-internal static class EnumFormatter
+namespace Microsoft.Toolkit.Uwp.Notifications
{
///
- /// Returns a representation of an enum value with pascal casing.
+ /// A helper class that can be used to format values.
///
- /// The type to format.
- /// The value to format.
- /// The pascal case representation of .
- public static string? ToPascalCaseString(this T? value)
- where T : unmanaged, Enum
+ internal static class EnumFormatter
{
- if (value is null)
+ ///
+ /// Returns a representation of an enum value with pascal casing.
+ ///
+ /// The type to format.
+ /// The value to format.
+ /// The pascal case representation of .
+ public static string? ToPascalCaseString(this T? value)
+ where T : unmanaged, Enum
{
- return null;
+ if (value is null)
+ {
+ return null;
+ }
+
+ return ToPascalCaseString(value.Value);
}
- return ToPascalCaseString(value.Value);
- }
+ ///
+ /// Returns a representation of an enum value with pascal casing.
+ ///
+ /// The type to format.
+ /// The value to format.
+ /// The pascal case representation of .
+ public static string? ToPascalCaseString(this T value)
+ where T : unmanaged, Enum
+ {
+ string? text = value.ToString();
- ///
- /// Returns a representation of an enum value with pascal casing.
- ///
- /// The type to format.
- /// The value to format.
- /// The pascal case representation of .
- public static string? ToPascalCaseString(this T value)
- where T : unmanaged, Enum
- {
- string? text = value.ToString();
+ if (text is null or { Length: 0 })
+ {
+ return text;
+ }
- if (text is null or { Length: 0 })
- {
- return text;
- }
+ if (text is { Length: 1 })
+ {
+ return text.ToLowerInvariant();
+ }
- if (text is { Length: 1 })
- {
- return text.ToLowerInvariant();
+ return $"{char.ToLowerInvariant(text[0])}{text.Substring(1)}";
}
-
- return $"{char.ToLowerInvariant(text[0])}{text.Substring(1)}";
}
}
\ No newline at end of file
diff --git a/Microsoft.Toolkit.Uwp.Notifications/Common/Serialization/IHaveXmlAdditionalProperties.cs b/Microsoft.Toolkit.Uwp.Notifications/Common/Serialization/IHaveXmlAdditionalProperties.cs
index 6c5d85d3b38..cb11d04ca57 100644
--- a/Microsoft.Toolkit.Uwp.Notifications/Common/Serialization/IHaveXmlAdditionalProperties.cs
+++ b/Microsoft.Toolkit.Uwp.Notifications/Common/Serialization/IHaveXmlAdditionalProperties.cs
@@ -6,15 +6,16 @@
#nullable enable
-namespace Microsoft.Toolkit.Uwp.Notifications;
-
-///
-/// An interface for a notification XML element with additional properties.
-///
-internal interface IHaveXmlAdditionalProperties
+namespace Microsoft.Toolkit.Uwp.Notifications
{
///
- /// Gets the mapping of additional properties.
+ /// An interface for a notification XML element with additional properties.
///
- IReadOnlyDictionary AdditionalProperties { get; }
-}
\ No newline at end of file
+ internal interface IHaveXmlAdditionalProperties
+ {
+ ///
+ /// Gets the mapping of additional properties.
+ ///
+ IReadOnlyDictionary AdditionalProperties { get; }
+ }
+}
diff --git a/Microsoft.Toolkit.Uwp.Notifications/Common/Serialization/IHaveXmlChildren.cs b/Microsoft.Toolkit.Uwp.Notifications/Common/Serialization/IHaveXmlChildren.cs
index 9bc07e8a099..e97000d3b81 100644
--- a/Microsoft.Toolkit.Uwp.Notifications/Common/Serialization/IHaveXmlChildren.cs
+++ b/Microsoft.Toolkit.Uwp.Notifications/Common/Serialization/IHaveXmlChildren.cs
@@ -6,15 +6,16 @@
#nullable enable
-namespace Microsoft.Toolkit.Uwp.Notifications;
-
-///
-/// An interface for a notification XML element with additional children.
-///
-internal interface IHaveXmlChildren
+namespace Microsoft.Toolkit.Uwp.Notifications
{
///
- /// Gets the children of the current element.
+ /// An interface for a notification XML element with additional children.
///
- IEnumerable