EndGrouping() 개인적인 메소드

private EndGrouping ( ) : void
리턴 void
예제 #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);
             }
         }
     }
 }