Systran.NlpClientLib.Client.ApiClient.ParameterToString C# (CSharp) Method

ParameterToString() public method

if parameter is DateTime, output in ISO8601 format if parameter is a list of string, join the list with "," otherwise just return the string
public ParameterToString ( object obj ) : string
obj object
return string
    public string ParameterToString(object obj)
    {
      if (obj is DateTime) {
        return ((DateTime)obj).ToString ("u");
      } else if (obj is List<string>) {
        return String.Join(",", obj as List<string>);
      } else {
	return Convert.ToString (obj);
      }
    }