src/States/PassState.cs
/// <summary>
///     Sets the "virtual" result of the pass state. Must be a valid JSON document.
/// </summary>
/// <param name="result">JSON result represented as a string.</param>
/// <returns>This object for method chaining.</returns>
/// <exception cref="StatesLanguageException"></exception>
Sets the "virtual" result of the pass state. Must be a valid JSON document.
Sets the " virtual " result of the pass state . Must be a valid JSON document .
public Builder Result(string result)
            {
                try
                {
                    using var reader = new StringReader(result);
                    _result = JToken.Load(new JsonTextReader(reader));
                }
                catch (Exception e)
                {
                    throw new StatesLanguageException("Result must be a JSON document", e);
                }
                return this;
            }
public Builder Result ( string result ) { try { using var reader = new StringReader ( result ) ; _result = JToken . Load ( new JsonTextReader ( reader ) ) ; } catch ( Exception e ) { throw new StatesLanguageException ( " " , e ) ; } return this ; }
Sets the "virtual" result of the pass state.
Sets the " virtual " result of the pass state .
This object for method chaining.
This object for method chaining .
None
result
string
JSON result represented as a string.
JSON result represented as a string .