ForCode() public static method

Attempts to locate a Period instance having the given code value.
public static ForCode ( string code ) : Period
code string The required code value.
return Period
Exemplo n.º 1
0
 /// <summary>
 /// Constructs an <b>Interval</b> from the provided multiplier and time
 /// unit code.
 /// </summary>
 /// <param name="multiplier">The time period unit multiplier.</param>
 /// <param name="code">The timer period unit code</param>
 public Interval(int multiplier, string code)
     : this(multiplier, Period.ForCode(code))
 {
 }