Skip to content

Commit d73e3f0

Browse files
committed
Apply coding standards
1 parent 095b64a commit d73e3f0

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

RestSharp/Extensions/StringExtensions.cs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,15 @@ public static string AddDashes(this string pascalCasedWord)
304304
"$1-$2"), @"[\s]", "-");
305305
}
306306

307-
/// <summary>
308-
/// Add an undescore prefix to a pascasl-cased string
309-
/// </summary>
310-
/// <param name="pascalCasedWord"></param>
311-
/// <returns></returns>
312-
public static string AddUnderscorePrefix(this string pascalCasedWord)
313-
{
314-
return string.Format("_{0}", pascalCasedWord);
315-
}
307+
/// <summary>
308+
/// Add an undescore prefix to a pascasl-cased string
309+
/// </summary>
310+
/// <param name="pascalCasedWord"></param>
311+
/// <returns></returns>
312+
public static string AddUnderscorePrefix(this string pascalCasedWord)
313+
{
314+
return string.Format("_{0}", pascalCasedWord);
315+
}
316316

317317
/// <summary>
318318
/// Return possible variants of a name for name matching.
@@ -345,12 +345,11 @@ public static IEnumerable<string> GetNameVariants(this string name, CultureInfo
345345
// try name with dashes with lower case
346346
yield return name.AddDashes().ToLower(culture);
347347

348-
// try name with underscore prefix
349-
yield return name.AddUnderscorePrefix();
350-
351-
// try name with underscore prefix with lower case
352-
yield return name.AddUnderscorePrefix().ToLower(culture);
348+
// try name with underscore prefix
349+
yield return name.AddUnderscorePrefix();
353350

354-
}
351+
// try name with underscore prefix with lower case
352+
yield return name.AddUnderscorePrefix().ToLower(culture);
353+
}
355354
}
356-
}
355+
}

0 commit comments

Comments
 (0)