@@ -304,15 +304,15 @@ public static string AddDashes(this string pascalCasedWord)
304
304
"$1-$2" ) , @"[\s]" , "-" ) ;
305
305
}
306
306
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
+ }
316
316
317
317
/// <summary>
318
318
/// Return possible variants of a name for name matching.
@@ -345,12 +345,11 @@ public static IEnumerable<string> GetNameVariants(this string name, CultureInfo
345
345
// try name with dashes with lower case
346
346
yield return name . AddDashes ( ) . ToLower ( culture ) ;
347
347
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 ( ) ;
353
350
354
- }
351
+ // try name with underscore prefix with lower case
352
+ yield return name . AddUnderscorePrefix ( ) . ToLower ( culture ) ;
353
+ }
355
354
}
356
- }
355
+ }
0 commit comments