Home PropertyDependency Class
PropertyDependency Class
Cancel

PropertyDependency Class

Namespace: Json.Schema

Inheritance: PropertyDependency 🡒 object

Implemented interfaces:

  • IKeyedSchemaCollector
  • IEquatable<PropertyDependency>

Represents a single entry in the propertyDependencies keyword.

Properties

NameTypeSummary
SchemasIReadOnlyDictionary<string, JsonSchema>Gets the collection of value-dependent schemas for this property.

Constructors

PropertyDependency(IReadOnlyDictionary<string, JsonSchema> schemas)

Creates a new instance of Json.Schema.PropertyDependency.

Declaration

1
public PropertyDependency(IReadOnlyDictionary<string, JsonSchema> schemas)
ParameterTypeDescription
schemasIReadOnlyDictionary<string, JsonSchema>The collection of value-dependent schemas for this property

PropertyDependency(params (string property, JsonSchema schema)[] schemas)

Creates a new instance of Json.Schema.PropertyDependency.

Declaration

1
public PropertyDependency(params (string property, JsonSchema schema)[] schemas)
ParameterTypeDescription
schemasparams (string property, JsonSchema schema)[]The collection of value-dependent schemas for this property

Methods

Equals(PropertyDependency other)

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

Declaration

1
public bool Equals(PropertyDependency other)
ParameterTypeDescription
otherPropertyDependencyAn object to compare with this object.

Returns

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

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

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

GetHashCode()

Serves as the default hash function.

Declaration

1
public override int GetHashCode()

Returns

A hash code for the current object.

Contents