VOOZH about

URL: https://docs.json-everything.net/api/JsonSchema.Net.Generation/SchemaGenerationContextCache/

⇱ SchemaGenerationContextCache Class | json-everything


👁 avatar
json-everything
Library documentation
Home SchemaGenerationContextCache Class
SchemaGenerationContextCache Class
Cancel

SchemaGenerationContextCache Class

Namespace: Json.Schema.Generation

Inheritance: SchemaGenerationContextCache 🡒 object

Gets the contexts for the current run.

Methods

Get(Type type)

Gets or creates a Json.Schema.Generation.TypeGenerationContext based on the given type and attribute set.

Declaration

1
public static TypeGenerationContext Get(Type type)
ParameterTypeDescription
typeTypeThe type to generate.

Returns

A generation context, from the cache if one exists with the specified type and attribute set; otherwise a new one. New contexts are automatically cached.

Remarks

Use this in your generator if it needs to create keywords with subschemas.

Contents

A new version of content is available.