Google.ProtocolBuffers.ProtoGen.GeneratorOptions.Validate C# (CSharp) Метод

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
        public void Validate()
        {
            IList<string> reasons;
              if (!TryValidate(out reasons)) {
            throw new InvalidOptionsException(reasons);
              }
        }

Usage Example

Пример #1
0
 private Generator(GeneratorOptions options)
 {
     options.Validate();
       this.options = options;
 }
All Usage Examples Of Google.ProtocolBuffers.ProtoGen.GeneratorOptions::Validate
GeneratorOptions