Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1132)

Unified Diff: Src/GoogleApis/Apis/Util/Utilities.cs

Issue 13632059: Issue 351: Reimplement OAuth2 - Step 2 (Auth PCL - only data types) (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: minor Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Src/GoogleApis.DotNet4/Apis/Util/Store/FileDataStore.cs ('k') | Src/GoogleApis/Properties/AssemblyInfo.cs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Src/GoogleApis/Apis/Util/Utilities.cs
===================================================================
--- a/Src/GoogleApis/Apis/Util/Utilities.cs
b/Src/GoogleApis/Apis/Util/Utilities.cs
@@ -43,12 43,14 @@
/// <summary>
/// Throws an <seealso cref="System.ArgumentNullException"/> if the string is <c>null</c> or empty.
/// </summary>
- internal static void ThrowIfNullOrEmpty(this string str, string paramName)
/// <returns>The original string</returns>
internal static string ThrowIfNullOrEmpty(this string str, string paramName)
{
if (string.IsNullOrEmpty(str))
{
throw new ArgumentException("Parameter was empty", paramName);
}
return str;
}
/// <summary>Returns <c>true</c> in case the enumerable is <c>null</c> or empty. </summary>
« no previous file with comments | « Src/GoogleApis.DotNet4/Apis/Util/Store/FileDataStore.cs ('k') | Src/GoogleApis/Properties/AssemblyInfo.cs » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b