示例#1
0
        public byte[] GetFileDescriptorSet()
        {
            var descriptor = Descriptors.Last();
            var output     = new FileDescriptorSet();

            output.File.AddRange(GetSelfAndDependency(descriptor.File).Select(x => x.SerializedData));
            return(output.ToByteArray());
        }
示例#2
0
        public IEnumerable <FileDescriptor> GetFileDescriptors()
        {
            var descriptor = Descriptors.Last();

            return(GetSelfAndDependency(descriptor.File));
        }