示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="frequency"></param>
        /// <returns></returns>
        public static CompoundingFrequency Parse(string frequency)
        {
            var result = new CompoundingFrequency {
                Value = frequency
            };

            return(result);
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="frequency"></param>
        /// <returns></returns>
        public static CompoundingFrequency Create(CompoundingFrequencyEnum frequency)
        {
            var result
                = new CompoundingFrequency
                {
                Value = CompoundingFrequencyScheme.GetEnumString(frequency)
                };

            return(result);
        }