Ejemplo n.º 1
0
        /// <inheritdoc />
        public override IValueNode ParseResult(object?resultValue)
        {
            return(resultValue switch
            {
                null => NullValueNode.Default,

                string s when Longitude.TryDeserialize(s, out var runtimeValue) =>
                ParseValue(runtimeValue),

                int i => ParseValue(i),

                double d => ParseValue(d),

                _ => throw ThrowHelper.LongitudeType_ParseValue_IsInvalid(this)
            });