| 1234567891011121314151617181920212223242526 |
- using System;
- namespace Quadarax.Foundation.Core.QConsole.Value
- {
- public class DecimalValue : AbstractValue
- {
- public DecimalValue() : base()
- {
- }
- public DecimalValue(decimal value) : base(typeof(decimal), value)
- {
- }
- protected override object ConvertStringToValue(string valueAsString)
- {
- return decimal.Parse(valueAsString);
- }
- public override string AsString()
- {
- return (HasValue ? Get()?.ToString() : string.Empty) ?? String.Empty;
- }
- }
- }
|