diff --git a/shortid/ShortId.cs b/shortid/ShortId.cs index 34065b7..262d894 100644 --- a/shortid/ShortId.cs +++ b/shortid/ShortId.cs @@ -17,11 +17,11 @@ public static class ShortId private static readonly object ThreadLock = new object(); /// - /// Generates a random string of varying length with special characters and without numbers + /// Generates a random string of varying length with special characters and without numbers. /// - /// Whether or not to include numbers - /// Whether or not special characters are included - /// A random string + /// Whether or not to include numbers. + /// Whether or not special characters are included. + /// A random string. public static string Generate(bool useNumbers = false, bool useSpecial = true) { var length = _random.Next(7, 15); @@ -29,12 +29,12 @@ public static string Generate(bool useNumbers = false, bool useSpecial = true) } /// - /// Generates a random string of a specified length with the option to add numbers and special characters + /// Generates a random string of a specified length with the option to add numbers and special characters. /// - /// Whether or not numbers are included in the string - /// Whether or not special characters are included - /// The length of the generated string - /// A random string + /// Whether or not numbers are included in the string. + /// Whether or not special characters are included. + /// The length of the generated string. + /// A random string. public static string Generate(bool useNumbers, bool useSpecial, int length) { if (length < 7) @@ -75,20 +75,20 @@ public static string Generate(bool useNumbers, bool useSpecial, int length) } /// - /// Generates a random string of a specified length with special characetrs and without numbers + /// Generates a random string of a specified length with special characetrs and without numbers. /// - /// The length of the generated string - /// A random string + /// The length of the generated string. + /// A random string. public static string Generate(int length) { return Generate(false, true, length); } /// - /// Changes the character set that id's are generated from + /// Changes the character set that id's are generated from. /// - /// The new character set - /// Thrown when the new character set is less than 20 characters + /// The new character set. + /// Thrown when the new character set is less than 20 characters. public static void SetCharacters(string characters) { if (string.IsNullOrWhiteSpace(characters)) @@ -117,7 +117,7 @@ public static void SetCharacters(string characters) /// /// Sets the seed that the random generator works with. /// - /// The seed for the random number generator + /// The seed for the random number generator. public static void SetSeed(int seed) { lock (ThreadLock) @@ -127,7 +127,7 @@ public static void SetSeed(int seed) } /// - /// Resets the random number generator and character set + /// Resets the random number generator and character set. /// public static void Reset() { @@ -138,4 +138,4 @@ public static void Reset() } } } -} \ No newline at end of file +}