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.
Afficher le fichier Open project: ayende/dotnet-protobufs Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

Validate() public méthode

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
Résultat void