public void Dispose()
 {
     if (this.descriptor != null)
     {
         this.descriptor = null;
     }
 }
        public bool Parse(
            string protoFilePath, List <string> protoSearchPath)
        {
            this.descriptor          = new ProtocolDescriptor();
            this.descriptor.ProtoDef =
                ParseProtocol(protoFilePath, protoSearchPath);

            if (this.descriptor.ProtoDef == null)
            {
                return(false);
            }

            return(true);
        }
 public abstract bool Generate(
     ProtocolDescriptor descriptor,
     string outputDir, NewLineType newLineType);