Skip to content

Supported mappings types

Roman Vladimirov edited this page Jul 19, 2025 · 9 revisions

All supported types for mapping to result model properties:

  • bool - examples -p1 or -p1=true will be true, not fill parameter or -p1=false will be false
  • int, long - examples -p=1 -p=20 -p=10023423
  • double, float, decimal - examples -p=0.1 -p=12.34545 -p=1002.3423
  • IEnumerable<int>, List<int>, IEnumerable<long>, List<long> - examples -p=1,2,3,4 -p=10010,300054005,5040450
  • IEnumerable<double>, List<double>, IEnumerable<float>, List<float>, IEnumerable<decimal>, List<decimal> - examples -p=0.1,0.2,0.3,0.4 -p=10.010,30005.4005,504.0450
  • DateOnly - examples -p=2025-04-20
  • DateTime - examples -p=2025-04-20T12:00:34
  • TimeSpan - examples -p=12:00:34
  • string - examples -p=MyStringValue -p="My String Value In Quotes"
  • IEnumerable<string>, List<string> - examples -p=MyStringValue1 MyStringValue2 MyStringValue3 -p="Value With Spaces" ValueWithoutSpaces
  • CommandLineRange<int> - examples -p=1-100 -p=500-80000
  • CommandLineRange<double>, CommandLineRange<float>, CommandLineRange<decimal> - examples -p=1.1-1.100 -p=345.20-8543.558

Clone this wiki locally