|
|
|
@ -138,7 +138,7 @@ namespace CppSharp.Passes
@@ -138,7 +138,7 @@ namespace CppSharp.Passes
|
|
|
|
|
Class @class = (Class) method.Namespace; |
|
|
|
|
Property property = @class.Properties.Find( |
|
|
|
|
p => p.Field == null && |
|
|
|
|
(p.Name == name || |
|
|
|
|
((!isSetter && p.HasSetter && p.Name == name) || |
|
|
|
|
(isSetter && p.HasGetter && |
|
|
|
|
GetReadWritePropertyName(p.GetMethod, name) == name)) && |
|
|
|
|
((p.HasGetter && |
|
|
|
@ -189,6 +189,15 @@ namespace CppSharp.Passes
@@ -189,6 +189,15 @@ namespace CppSharp.Passes
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Property conflict = newProperties.LastOrDefault( |
|
|
|
|
p => p.Name == property.Name && p != property && |
|
|
|
|
p.ExplicitInterfaceImpl == property.ExplicitInterfaceImpl); |
|
|
|
|
if (conflict != null && conflict.GetMethod != null) |
|
|
|
|
{ |
|
|
|
|
conflict.GetMethod.GenerationKind = GenerationKind.Generate; |
|
|
|
|
conflict.GetMethod = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RenameConflictingMethods(@class, property); |
|
|
|
|
CombineComments(property); |
|
|
|
|
} |
|
|
|
|