C# Класс Google.ProtocolBuffers.ProtoGen.GeneratorOptions

All the configuration required for the generator - where to generate output files, the location of input files etc. While this isn't immutable in practice, the contents shouldn't be changed after being passed to the generator.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
TryValidate ( IList &reasons ) : bool

Attempts to validate the options, but doesn't throw an exception if they're invalid. Instead, when this method returns false, the output variable will contain a collection of reasons for the validation failure.

Validate ( ) : void

Validates that all the options have been set and are valid, throwing an exception if they haven't.

Описание методов

TryValidate() публичный Метод

Attempts to validate the options, but doesn't throw an exception if they're invalid. Instead, when this method returns false, the output variable will contain a collection of reasons for the validation failure.
public TryValidate ( IList &reasons ) : bool
reasons IList Variable to receive a list of reasons in case of validation failure.
Результат bool

Validate() публичный Метод

Validates that all the options have been set and are valid, throwing an exception if they haven't.
The options are invalid.
public Validate ( ) : void
Результат void