diff --git a/X10D/StructExtensions.cs b/X10D/StructExtensions.cs
index 1ffeff1..f23cac8 100644
--- a/X10D/StructExtensions.cs
+++ b/X10D/StructExtensions.cs
@@ -7,10 +7,18 @@
#endregion
///
- /// A set of extension methods for types.
+ /// Extension methods for types.
///
public static class StructExtensions
{
+ ///
+ /// Returns the next value in an using the specified value as a starting point.
+ ///
+ /// An .
+ /// An value
+ /// Optional. Whether or not to wrap to the to the start of the enum. Defaults to
+ /// true.
+ /// Returns a value.
public static T Next(this T src, bool wrap = true) where T : struct
{
if (!typeof(T).IsEnum)
@@ -23,6 +31,14 @@
return arr.Length == j ? arr[wrap ? 0 : j - 1] : arr[j];
}
+ ///
+ /// Returns the previous value in an using the specified value as a starting point.
+ ///
+ /// An .
+ /// An value
+ /// Optional. Whether or not to wrap to the to the end of the enum. Defaults to
+ /// true.
+ /// Returns a value.
public static T Previous(this T src, bool wrap = true) where T : struct
{
if (!typeof(T).IsEnum)