private void SetAttributeDefaults(PropertyInfo info, ArgumentAttribute atty) { if (info != null && atty != null) { //set the KeyName as the property name if it is empty if (string.IsNullOrEmpty(atty.Name)) { atty.Name = info.Name; } } else { _logger.Log("SetAttributeDefault called with null parameters!", LogMessageSeverity.Error); } }
private string GetTokenName(ArgumentAttribute attribute) { return(string.Format("{0}{1}", attribute.Switch, attribute.Name)); }