mooege/mooege — Issue #319: ProtoGen bug?
Author: Farmy
Created: 2011-11-08 04:26:06+00:00
State: open

Quest.Proto

has a line

"optional .D3.Items.Generator item = 3;"

that causes protogen to create a method SetItem() that in turn leads to an

System.Reflection.AmbiguousMatchException: Ambiguous match found.
at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)

This is my assumption because xsochor came up with the solution not me. but because changes introduced to the generated classes will get lost when we regenerate them i put an additional note here.
Maybe we should upgrade to a newer version of protogen
http://protobuf-csharp-port.googlecode.com/files/protobuf-csharp-port-2.4.1.473-source.zip
and/or alter quest.proto