private static string GetPropertyCommandLineArgName(PropertyInfo info)
 {
     object[] customAttributes = info.GetCustomAttributes(typeof(CommandLineArgumentNameAttribute), false);
     if (customAttributes.Length > 0)
     {
         CommandLineArgumentNameAttribute commandLineArgumentNameAttribute = customAttributes[0] as CommandLineArgumentNameAttribute;
         if (commandLineArgumentNameAttribute != null)
         {
             return(commandLineArgumentNameAttribute.Name);
         }
     }
     return(null);
 }
        private static string GetPropertyCommandLineArgName(PropertyInfo info)
        {
            object[] customAttributes = info.GetCustomAttributes(typeof(CommandLineArgumentNameAttribute), false);
            if (customAttributes.Length > 0)
            {
                // Should be one and only one DefaultValue attribute, so just take the one at index 0.
                CommandLineArgumentNameAttribute argNameAttribute = customAttributes[0] as CommandLineArgumentNameAttribute;
                if (argNameAttribute != null)
                {
                    return(argNameAttribute.Name);
                }
            }

            return(null);
        }