Interface CSharpOptions

interface CSharpOptions {
    autoImplementedProperties: boolean;
    collectionType: "List" | "Array";
    constraints: Constraints<CSharpOptions>;
    defaultPreset?: Partial<{
        class: CsharpClassPreset<any>;
        enum: EnumPreset<EnumRenderer, any>;
        record: CsharpRecordPreset<any>;
    }>;
    dependencyManager?: AbstractDependencyManager | (() => AbstractDependencyManager);
    handleNullable: boolean;
    indentation?: {
        size: number;
        type: IndentationTypes;
    };
    modelType: "class" | "record";
    presets?: Presets<Partial<{
        class: CsharpClassPreset<any>;
        enum: EnumPreset<EnumRenderer, any>;
        record: CsharpRecordPreset<any>;
    }>>;
    processorOptions?: ProcessorOptions;
    typeMapping: TypeMapping<CSharpOptions, CSharpDependencyManager>;
}

Hierarchy (view full)

Properties

autoImplementedProperties: boolean
collectionType: "List" | "Array"
defaultPreset?: Partial<{
    class: CsharpClassPreset<any>;
    enum: EnumPreset<EnumRenderer, any>;
    record: CsharpRecordPreset<any>;
}>

Type declaration

  • class: CsharpClassPreset<any>
  • enum: EnumPreset<EnumRenderer, any>
  • record: CsharpRecordPreset<any>
dependencyManager?: AbstractDependencyManager | (() => AbstractDependencyManager)

This dependency manager type serves two functions.

  1. It can be used to provide a factory for generate functions
  2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

This depends on context and where it's used.

Type declaration

    • (): AbstractDependencyManager
    • Returns AbstractDependencyManager

handleNullable: boolean
indentation?: {
    size: number;
    type: IndentationTypes;
}

Type declaration

modelType: "class" | "record"
presets?: Presets<Partial<{
    class: CsharpClassPreset<any>;
    enum: EnumPreset<EnumRenderer, any>;
    record: CsharpRecordPreset<any>;
}>>
processorOptions?: ProcessorOptions
typeMapping: TypeMapping<CSharpOptions, CSharpDependencyManager>