🔡
Syllabore
GitHub
  • Overview
  • Starting Out
  • Fine-Tuning Generators
    • Positioning
    • Clusters
    • Weights
    • Chancing
    • Transforms
    • Filtering
  • More Techniques
    • Formatters
    • Generator Pools
    • Syllable Sets
    • Generator Serialization
  • More Examples
    • Soft/Hard-Sounding Names
    • Fantasy Names
    • Spaceship Names
    • Futuristic City Names
  • Class Docs
    • FilterCondition
    • FilterConstraint
    • GeneratorPool<T>
    • INameFilter
    • INameTransformer
    • IPotentialAction
    • IRandomizable
    • ISyllableGenerator
    • Name
    • NameFilter
    • NameFormat
    • NameFormatter
    • NameFormatterGeneratorOptions
    • NameGenerator
    • NameGeneratorSerializer
    • NameGeneratorTypeInformation
    • SerializedNameGenerator
    • SyllableGenerator
    • SyllableGeneratorFluentWrapper
    • SyllablePosition
    • SyllableSet
    • Symbol
    • SymbolGenerator
    • SymbolPosition
    • Transform
    • TransformSet
    • TransformStep
    • TransformStepType
Powered by GitBook
On this page
  • Constructors
  • Methods
  • Properties
  1. Class Docs

NameGeneratorSerializer

PreviousNameGeneratorNextNameGeneratorTypeInformation

Last updated 2 months ago

A convenience class for reading and writing a to disk and back.

Constructors

Constructor
Description

NameGeneratorSerializer()

Initializes a new with basic encoder settings.

Methods

Method
Returns
Description

Deserialize(System.String filepath)

Reads a json file and turns it into a . This method expects the json file to have been written by the Syllabore.Json.NameGeneratorSerializer.Serialize method of this class.

Serialize( generator, System.String filepath)

System.Void

Writes the specified to a json file.

Properties

Property
Type
Description

EncoderSettings

System.Text.Encodings.Web.TextEncoderSettings

Allows characters and unicode ranges.

WriteIndented

System.Boolean

If true, json output will be indented and easier to read.

NameGenerator
NameGeneratorSerializer
NameGenerator
NameGenerator
NameGenerator
NameGenerator