diff options
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs index 4c46f75..5a4a0d3 100644 --- a/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs +++ b/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs @@ -74,7 +74,7 @@ namespace DotNetOpenAuth.OAuth2 { /// </summary> /// <param name="scopes">The scopes to serialize.</param> /// <returns>A space-delimited list.</returns> - public static string JoinScopes(ISet<string> scopes) { + public static string JoinScopes(HashSet<string> scopes) { Requires.NotNull(scopes, "scopes"); VerifyValidScopeTokens(scopes); return string.Join(" ", scopes.ToArray()); @@ -85,7 +85,7 @@ namespace DotNetOpenAuth.OAuth2 { /// </summary> /// <param name="scopes">The space-delimited string.</param> /// <returns>A set.</returns> - internal static ISet<string> ParseScopeSet(string scopes) { + internal static HashSet<string> ParseScopeSet(string scopes) { Requires.NotNull(scopes, "scopes"); return ParseScopeSet(scopes.Split(scopeDelimiter, StringSplitOptions.RemoveEmptyEntries)); } @@ -95,7 +95,7 @@ namespace DotNetOpenAuth.OAuth2 { /// </summary> /// <param name="scopes">The array of strings.</param> /// <returns>A set.</returns> - internal static ISet<string> ParseScopeSet(string[] scopes) { + internal static HashSet<string> ParseScopeSet(string[] scopes) { Requires.NotNull(scopes, "scopes"); return new HashSet<string>(scopes, StringComparer.Ordinal); } |