Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 private string GetTokenName(ArgumentAttribute attribute)
 {
     return(string.Format("{0}{1}", attribute.Switch, attribute.Name));
 }