Home ICodeWriter Interface
ICodeWriter Interface
Cancel

ICodeWriter Interface

Namespace: Json.Schema.CodeGeneration.Language

Inheritance: ICodeWriter

Converts the type model into code text.

Methods

TransformName(string original)

Transforms a name as it appears in a JSON string into a language-appropriate type or member name.

Declaration

1
public abstract string TransformName(string original)
ParameterTypeDescription
originalstringThe JSON string.

Returns

The transformed name, or null if the string is unsupported.

Write(StringBuilder builder, TypeModel model)

Converts a single type model into code text.

Declaration

1
public abstract void Write(StringBuilder builder, TypeModel model)
ParameterTypeDescription
builderStringBuilderA string builder.
modelTypeModelA type model.
Contents