svn path=/trunk/mcs/; revision=105410
+2008-06-10 Vladimir Krasnov <vladimirk@mainsoft.com>
+
+ * ProtocolReflector.cs: fixed ImportBinding method, ports with the same
+ name declaration when non-default binding used, #345449
+
2008-04-01 Lluis Sanchez Gual <lluis@novell.com>
* ProtocolImporter.cs: Use the binding name as class name for the
if (bindingFull)
{
port.Binding = new XmlQualifiedName (binding.Name, binfo.Namespace);
+
+ int n = 0;
+ string name = binfo.Name;
+ bool found;
+ do {
+
+ found = false;
+ foreach (Port p in service.Ports)
+ if (p.Name == name) { found = true; n++; name = binfo.Name + n; break; }
+ }
+ while (found);
+ port.Name = name;
service.Ports.Add (port);
}