File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed
Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 77namespace ArgumentParser
88{
99 #region Helper
10+ /// <summary>
11+ /// Helper class for severl helper methods
12+ /// </summary>
1013 public static class Helper
1114 {
15+
16+ /// <summary>
17+ /// Indicates whether an object type is numeric
18+ /// </summary>
19+ /// <param name="o">ObjectReference to check type (Extention)</param>
20+ /// <returns>true if given objct is numeric</returns>
1221 public static bool IsNumericType ( this object o )
1322 {
14- switch ( Type . GetTypeCode ( o . GetType ( ) ) )
23+ switch ( Type . GetTypeCode ( o . GetType ( ) ) ) //Switch without break(!) for all numeric types
1524 {
1625 case TypeCode . Byte :
1726 case TypeCode . SByte :
Original file line number Diff line number Diff line change @@ -13,10 +13,25 @@ namespace ArgumentParser
1313 [ AttributeUsage ( AttributeTargets . Parameter ) ]
1414 public class ParameterInfoAttribute : Attribute
1515 {
16+ /// <summary>
17+ /// Command Pattern for a specifc Parameter
18+ /// </summary>
1619 public string Command { get ; set ; }
20+
21+ /// <summary>
22+ /// MaxValue for ParameterRange
23+ /// </summary>
1724 public long MaxValue { get ; set ; } = long . MaxValue ;
25+
26+ /// <summary>
27+ /// MinValue for Parameter Range
28+ /// </summary>
1829 public long MinValue { get ; set ; } = long . MinValue ;
19- public int ArrayLenght { get ; set ; }
30+
31+ /// <summary>
32+ /// Length of array (pre defined for index)
33+ /// </summary>
34+ public int ArrayLength { get ; set ; }
2035
2136 }
2237}
You can’t perform that action at this time.
0 commit comments