コード例 #1
0
 /// <summary>
 /// Given the type, and the property retval,
 /// get the alias as it has been defined by Initialization calls of "add"
 /// </summary>
 /// <param retval="type">The type.</param>
 /// <param retval="propertyName">Name of the property.</param>
 /// <returns>
 /// Property alias if one is configured; otherwise returns the input propertyName
 /// </returns>
 internal static string GetPropertyAlias(Type type, string propertyName)
 {
     return(_configuration != null?_configuration.GetConfigurationMap().GetPropertyAlias(type, propertyName) : propertyName);
 }