@@ -421,31 +421,21 @@ public static bool IsCustomStruct(this Type source)
421421 }
422422
423423 /// <summary>
424- /// Converts the name of a method into camelCase
424+ /// Converts the name of a property/ method into camelCase
425425 /// </summary>
426- /// <param name="method">the method which will have it's name converted</param>
427- /// <returns>the camel case version of the method name.</returns>
428- public static string ConvertNameToCamelCase ( this MethodInfo method )
429- {
430- return ConvertNameToCamelCase ( method . Name ) ;
431- }
432-
433- /// <summary>
434- /// Converts the name of a property into camelCase
435- /// </summary>
436- /// <param name="property">the property which will have it's name converted</param>
426+ /// <param name="memberInfo">the property/method which will have it's name converted</param>
437427 /// <returns>the camel case version of the property name.</returns>
438- public static string ConvertNameToCamelCase ( this PropertyInfo property )
428+ public static string ConvertNameToCamelCase ( this MemberInfo memberInfo )
439429 {
440- return ConvertNameToCamelCase ( property . Name ) ;
430+ return ConvertNameToCamelCase ( memberInfo . Name ) ;
441431 }
442432
443433 /// <summary>
444434 /// Converts a string (usually .NET value of some sort) to a camelCase representation.
445435 /// </summary>
446436 /// <param name="sourceString"></param>
447437 /// <returns>the string converted to camelCase or preserved based on it's original structure.</returns>
448- private static string ConvertNameToCamelCase ( this string sourceString )
438+ internal static string ConvertNameToCamelCase ( this string sourceString )
449439 {
450440 // don't allow whitespace in property names.
451441 // because we use this in the actual binding process, we should be throwing and not allowing invalid entries.
0 commit comments