C# Class 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.
Mostra file Open project: ayende/dotnet-protobufs Class Usage Examples

Public Methods

Method Description
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.

Method Details

TryValidate() public method

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.
return bool

Validate() public method

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
return void