Commit be79661 1 parent 2659ead commit be79661 Copy full SHA for be79661
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ private static void RenameInterfacePropertyInBaseClasses(InterfaceModel interfac
260
260
{
261
261
foreach ( var derivedClass in interfaceModel . AllDerivedReferenceTypes ( ) . Where ( c => c != implementationClass ) )
262
262
{
263
- foreach ( var propertyModel in derivedClass . Properties . Where ( p =>
263
+ foreach ( var propertyModel in derivedClass . Properties . Where ( p =>
264
264
implementationClassProperty . OriginalPropertyName == p . OriginalPropertyName
265
265
&& implementationClassProperty . XmlSchemaName == p . XmlSchemaName
266
266
&& implementationClassProperty . IsAttribute == p . IsAttribute ) )
@@ -526,7 +526,11 @@ private TypeModel CreateTypeModel(XmlSchemaComplexType complexType)
526
526
var baseModel = builder . CreateTypeModel ( complexType . BaseXmlSchemaType . QualifiedName , complexType . BaseXmlSchemaType ) ;
527
527
classModel . BaseClass = baseModel ;
528
528
if ( baseModel is ClassModel baseClassModel )
529
+ {
529
530
baseClassModel . DerivedTypes . Add ( classModel ) ;
531
+ if ( classModel . AllBaseTypes . Any ( b => b . XmlSchemaType . QualifiedName == qualifiedName ) )
532
+ classModel . Name += "Redefinition" ;
533
+ }
530
534
}
531
535
532
536
XmlSchemaParticle xmlParticle = null ;
You can’t perform that action at this time.
0 commit comments