public ClassDescriptor ChildClassDescriptor(string currentTagName)
{
if (!IsPolymorphic)
return _elementClassDescriptor;
if (polymorphClassDescriptors == null)
{
ResolveUnresolvedClassesAnnotation();
ResolveUnresolvedScopeAnnotation();
}
if(polymorphClassDescriptors == null)
{
Debug.WriteLine("The " + this.Name + " field is declared polymorphic, but its polymorphic ClassDescriptor don't exist! Check annotation and is simplTypesScopes defined?");
return null;
}
if (polymorphClassDescriptors.ContainsKey(currentTagName))
{
ClassDescriptor result = polymorphClassDescriptors[currentTagName];
return polymorphClassDescriptors[currentTagName];
}
return null;
}