Skip to content

Commit 039e94a

Browse files
committed
Added MethodComments
Renamed ArrayLenght to ArrayLength
1 parent 953c3cc commit 039e94a

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

ArgumentParser/Helper.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@
77
namespace 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:

ArgumentParser/ParameterAttribute.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)