Namespace: Json.Schema
Inheritance: PropertyDependency
🡒 object
Implemented interfaces:
- IEquatable<PropertyDependency>
Represents a single entry in the propertyDependencies
keyword.
Properties
Name | Type | Summary |
---|---|---|
Schemas | IReadOnlyDictionary<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)
Parameter | Type | Description |
---|---|---|
schemas | IReadOnlyDictionary<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)
Parameter | Type | Description |
---|---|---|
schemas | params (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)
Parameter | Type | Description |
---|---|---|
other | PropertyDependency | An object to compare with this object. |
Returns
true if the current object is equal to the
Equals(object obj)
Determines whether the specified object is equal to the current object.
Declaration
1
public override bool Equals(object obj)
Parameter | Type | Description |
---|---|---|
obj | object | The 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.