Home RuntimeExpression Class
RuntimeExpression Class
Cancel

RuntimeExpression Class

Namespace: Json.Schema.Api.OpenApi

Inheritance: RuntimeExpression 🡒 object

Implemented interfaces:

  • IEquatable<string>
  • IEquatable<RuntimeExpression>

Models an OpenAPI runtime expression.

Fields

NameTypeSummary
MethodRuntimeExpressionA $method runtime expression.
StatusCodeRuntimeExpressionA $statusCode runtime expression.
UrlRuntimeExpressionA $url runtime expression.

Properties

NameTypeSummary
ExpressionTypeRuntimeExpressionTypeGets the expression type.
JsonPointerJsonPointer?Gets the JSON Pointer.
NamestringGets the name.
SourceTypeRuntimeExpressionSourceType?Gets the source type.
TokenstringGets the token.

Methods

Equals(string other)

Indicates whether the current object is equal to another object of the same type.

Declaration

1
public bool Equals(string other)
ParameterTypeDescription
otherstringAn object to compare with this object.

Returns

if the current object is equal to the parameter; otherwise, .

Equals(RuntimeExpression other)

Indicates whether the current object is equal to another object of the same type.

Declaration

1
public bool Equals(RuntimeExpression other)
ParameterTypeDescription
otherRuntimeExpressionAn object to compare with this object.

Returns

if the current object is equal to the parameter; otherwise, .

Equals(object obj)

Determines whether the specified object is equal to the current object.

Declaration

1
public override bool Equals(object obj)
ParameterTypeDescription
objobjectThe object to compare with the current object.

Returns

if the specified object is equal to the current object; otherwise, .

GetHashCode()

Serves as the default hash function.

Declaration

1
public override int GetHashCode()

Returns

A hash code for the current object.

Parse(string source)

Parses a runtime expression from a string.

Declaration

1
public static RuntimeExpression Parse(string source)
ParameterTypeDescription
sourcestringThe string source

Returns

A runtime expression

ToString()

Returns a string that represents the current object.

Declaration

1
public override string ToString()

Returns

A string that represents the current object.

Contents