예제 #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);
        }