Пример #1
0
        public static List <FieldProperties> FieldsFrom(string className)
        {
            try
            {
                List <FieldProperties> listFieldProperties = new List <FieldProperties>();
                ClassDetails           clDetails           = new ClassDetails(className);
                IReflectField[]        fields = clDetails.GetFieldList();
                if (fields == null)
                {
                    return(null);
                }

                foreach (IReflectField field in clDetails.GetFieldList())
                {
                    if (!(field is GenericVirtualField || field.IsStatic()))
                    {
                        FieldProperties fp = FieldPropertiesFor(className, field);
                        listFieldProperties.Add(fp);
                    }
                }
                return(listFieldProperties);
            }

            catch (Exception oEx)
            {
                LoggingHelper.HandleException(oEx);
                return(null);
            }
        }
Пример #2
0
        private static FieldProperties FieldPropertiesFor(string className, IReflectField field)
        {
            FieldProperties fp = new FieldProperties(field.GetName(), field.GetFieldType().GetName());
            FieldDetails    fd = new FieldDetails(className, fp.Field);

            fp.m_isPublic  = fd.GetModifier();
            fp.m_isIndexed = fd.IsIndexed();

            return(fp);
        }
Пример #3
0
		private ProxyFieldProperties ConverFieldProperties(FieldProperties properties)
		{
			ProxyFieldProperties p = new ProxyFieldProperties();

			p.Field = properties.Field;
			p.Indexed = properties.Indexed;
			p.Public = properties.Public;
			p.DataType = properties.DataType;
			p.Type = new ProxyType().CovertITypeToProxyType(properties.Type);
			return p;
		}
Пример #4
0
        public ClassPropertiesTable GetClassProperties()
        {
            try
            {
                ClassDetails clsDetails = new ClassDetails(m_className);

                m_fieldEntries = FieldProperties.FieldsFrom(m_className);
                m_noOfObjects  = clsDetails.GetNumberOfObjects();
                return(this);
            }
            catch (Exception oEx)
            {
                LoggingHelper.HandleException(oEx);
                return(null);
            }
        }
Пример #5
0
 public static ArrayList FieldsFrom(string className)
 {
     try
     {
         ArrayList    listFieldProperties = new ArrayList();
         ClassDetails clDetails           = new ClassDetails(className);
         foreach (IReflectField field in clDetails.GetFieldList())
         {
             if (!(field is GenericVirtualField))
             {
                 FieldProperties fp = FieldPropertiesFor(className, field);
                 listFieldProperties.Add(fp);
             }
         }
         return(listFieldProperties);
     }
     catch (Exception oEx)
     {
         LoggingHelper.HandleException(oEx);
         return(null);
     }
 }
Пример #6
0
    	private static FieldProperties FieldPropertiesFor(string className, IReflectField field)
    	{
    		FieldProperties fp = new FieldProperties(field.GetName(), field.GetFieldType().GetName());
    		FieldDetails fd = new FieldDetails(className, fp.Field);
    		fp.m_isPublic = fd.GetModifier();
    		fp.m_isIndexed = fd.IsIndexed();
    		
			return fp;
    	}