示例#1
0
 public string Format(object target, string msg)
 {
     try
     {
         return(ChoString.ExpandProperties(target, msg, '{', '}', '^', new ChoCustomKeyValuePropertyReplacer(target)));
     }
     catch (Exception ex)
     {
         return(ChoPropertyManager.FormatException(msg, ex));
     }
 }
 public string Format(object target, string msg)
 {
     try
     {
         return(msg);
     }
     catch (Exception ex)
     {
         return(ChoPropertyManager.FormatException(msg, ex));
     }
 }