aboutsummaryrefslogtreecommitdiff
path: root/src/ProtoGen/Generator.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2008-11-13 22:29:48 +0000
committerJon Skeet <skeet@pobox.com>2008-11-13 22:29:48 +0000
commit1d131c98f058dc0b5e0ebef73602e09dc88fe075 (patch)
treee94ff4c7383c557902ec5eb63b8889dda24e3bd7 /src/ProtoGen/Generator.cs
parentd6343be707cb6a067fe2b5ccc2efd7848072d17c (diff)
downloadprotobuf-1d131c98f058dc0b5e0ebef73602e09dc88fe075.tar.gz
protobuf-1d131c98f058dc0b5e0ebef73602e09dc88fe075.tar.bz2
protobuf-1d131c98f058dc0b5e0ebef73602e09dc88fe075.zip
New options now work fine.
Diffstat (limited to 'src/ProtoGen/Generator.cs')
-rw-r--r--src/ProtoGen/Generator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ProtoGen/Generator.cs b/src/ProtoGen/Generator.cs
index f7a82cca..828b610c 100644
--- a/src/ProtoGen/Generator.cs
+++ b/src/ProtoGen/Generator.cs
@@ -30,8 +30,8 @@ namespace Google.ProtocolBuffers.ProtoGen {
foreach (string inputFile in options.InputFiles) {
FileDescriptorSet descriptorProtos;
ExtensionRegistry extensionRegistry = ExtensionRegistry.CreateInstance();
- extensionRegistry.Add(CSharpFileOptions.CSharpOptions);
- extensionRegistry.Add(CSharpFieldOptions.CSharpOptions);
+ extensionRegistry.Add(CSharpOptions.CSharpFileOptions);
+ extensionRegistry.Add(CSharpOptions.CSharpFieldOptions);
using (Stream inputStream = File.OpenRead(inputFile)) {
descriptorProtos = FileDescriptorSet.ParseFrom(inputStream, extensionRegistry);
}