GetMetaData() private method

private GetMetaData ( ) : Object
return Object
示例#1
0
 private void ConvertFieldAndPropertyInfos(ArrayList vals)
 {
     for (int i = 0, n = vals.Count; i < n; i++)
     {
         JSField jsfld = vals[i] as JSField;
         if (jsfld != null)
         {
             vals[i] = jsfld.GetMetaData(); continue;
         }
         JSProperty jsprop = vals[i] as JSProperty;
         if (jsprop != null)
         {
             vals[i] = jsprop.metaData; continue;
         }
     }
 }
        private void ConvertFieldAndPropertyInfos(ArrayList vals)
        {
            int num   = 0;
            int count = vals.Count;

            while (num < count)
            {
                JSField field = vals[num] as JSField;
                if (field != null)
                {
                    vals[num] = field.GetMetaData();
                }
                else
                {
                    JSProperty property = vals[num] as JSProperty;
                    if (property != null)
                    {
                        vals[num] = property.metaData;
                    }
                }
                num++;
            }
        }