private bool ResolveScopeAnnotation(string scopeAnnotation) { SimplTypesScope scope = SimplTypesScope.Get(scopeAnnotation); if (scope != null) { List <ClassDescriptor> scopeClassDescriptors = scope.GetClassDescriptors(); InitTagClassDescriptorsArrayList(scopeClassDescriptors.Count); foreach (ClassDescriptor classDescriptor in scopeClassDescriptors) { String tagName = classDescriptor.TagName; polymorphClassDescriptors.Put(tagName, classDescriptor); polymorphClasses.Put(tagName, classDescriptor.DescribedClass); } } return(scope != null); }
private bool ResolveScopeAttribute(string scopeAttributeValue) { SimplTypesScope scope = SimplTypesScope.Get(scopeAttributeValue); if (scope != null) { List <ClassDescriptor> scopeClassDescriptors = scope.ClassDescriptors; InitPolymorphicClassDescriptorsList(scopeClassDescriptors.Count); foreach (var scopeClassDescriptor in scopeClassDescriptors) { polymorphClassDescriptors.Put(scopeClassDescriptor.TagName, scopeClassDescriptor); polymorphClasses.Put(scopeClassDescriptor.TagName, scopeClassDescriptor.DescribedClass); tlvClassDescriptors.Put(_tagName.GetHashCode(), scopeClassDescriptor); } } return(scope != null); }