//--------------------------------------------------------------------- static AgeRangeParsing() { // Register the local method for parsing a cohort age or age range. InputValues.Register <AgeRange>(ParseAgeOrRange); Type.SetDescription <AgeRange>("cohort age or age range"); uShortParse = InputValues.GetParseMethod <ushort>(); }
//--------------------------------------------------------------------- static InputParametersParser() { // FIXME: Hack to ensure that Percentage is registered with InputValues Edu.Wisc.Forest.Flel.Util.Percentage p = new Edu.Wisc.Forest.Flel.Util.Percentage(); // Register the local method for parsing a cohort age or age range. InputValues.Register <AgeRange>(ParseAgeOrRange); Type.SetDescription <AgeRange>("cohort age or age range"); uShortParse = InputValues.GetParseMethod <ushort>(); }
//--------------------------------------------------------------------- static InputValidation() { parseInt = InputValues.GetParseMethod <int>(); }