public static TransformMarshallLocationName ( bool isEC2Protocol, string locationName ) : string | ||
isEC2Protocol | bool | |
locationName | string | |
return | string |
public static string TransformMarshallLocationName(bool isEC2Protocol, string locationName)
{
if (string.IsNullOrEmpty(locationName) || !isEC2Protocol)
return locationName;
return string.Concat(locationName.Substring(0, 1).ToUpper(), locationName.Substring(1));
}