EndGrouping() private method

private EndGrouping ( ) : void
return void
Beispiel #1
0
 private void ProcessProperties(IEnumerable <ContentInfo> properties, List <ClrAnnotation> annotations)
 {
     foreach (ContentInfo child in properties)
     {
         //Child can either be a property directly for attributes or a grouping for content model,
         if (child.ContentType == ContentType.Property)
         {
             ClrPropertyInfo propertyInfo = child as ClrPropertyInfo;
             propertyInfo.UpdateTypeReference(currentFullTypeName, currentNamespace, nameMappings, CreateNestedEnumType);
             typeBuilder.CreateAttributeProperty(child as ClrPropertyInfo, null);
         }
         else
         {
             GroupingInfo rootGroup = child as GroupingInfo;
             if (rootGroup.IsComplex)
             {
                 typeBuilder.StartGrouping(rootGroup);
                 ProcessComplexGroupProperties(rootGroup, annotations);
                 typeBuilder.EndGrouping();
             }
             else
             {
                 ProcessGroup(rootGroup, annotations);
             }
         }
     }
 }