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.
파일 보기 프로젝트 열기: ayende/dotnet-protobufs 1 사용 예제들

공개 메소드들

메소드 설명
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