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

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

                int i => ParseValue(i),

                double d => ParseValue(d),

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