예제 #1
0
        private static SubModule[] GetSubmodules(IModelSystemStructure mss)
        {
            var list = mss.Children;

            if (list == null)
            {
                return(null);
            }
            var length = list.Count;

            SubModule[] ret = new SubModule[length];
            for (int i = 0; i < length; i++)
            {
                ret[i] = new SubModule()
                {
                    Type        = list[i].ParentFieldType == null ? "Unknown" : ConvertTypeName(list[i].ParentFieldType),
                    Name        = list[i].ParentFieldName,
                    Description = list[i].Description,
                    Required    = list[i].Required
                };
            }
            return(ret);
        }
예제 #2
0
 private static SubModule[] GetSubmodules(IModelSystemStructure mss)
 {
     var list = mss.Children;
     if ( list == null )
     {
         return null;
     }
     var length = list.Count;
     SubModule[] ret = new SubModule[length];
     for ( int i = 0; i < length; i++ )
     {
         ret[i] = new SubModule()
         {
             Type = list[i].ParentFieldType == null ? "Unknown" : ConvertTypeName( list[i].ParentFieldType ),
             Name = list[i].ParentFieldName,
             Description = list[i].Description,
             Required = list[i].Required
         };
     }
     return ret;
 }