Пример #1
0
        /// <summary>
        /// Get属性
        /// </summary>
        /// <param name="property">属性</param>
        public LnProperty(PropertyInfo property)
        {
            this.Name         = property.Name;
            this.PropertyType = property.PropertyType;
            this.IsString     = property.PropertyType == typeof(string);

            this.SortType = GetLnSortType(property.PropertyType);
            this.geter    = CreateMethodInvoker(property.GetGetMethod());
            this.seter    = CreateMethodInvoker(property.GetSetMethod());
        }
Пример #2
0
        /// <summary>
        /// Get属性
        /// </summary>
        /// <param name="property">属性</param>
        public LnProperty(PropertyInfo property)
        {
            this.Name         = property.Name;
            this.PropertyType = property.PropertyType;
            this.IsString     = property.PropertyType == typeof(string);

            this.SortType = GetLnSortType(property.PropertyType);
            this.geter    = new ApiAction(property.GetGetMethod());
            this.seter    = new ApiAction(property.GetSetMethod());
        }
Пример #3
0
        /// <summary>
        /// Get属性
        /// </summary>
        /// <param name="property">属性</param>
        public LnProperty(PropertyInfo property)
        {
            this.Name = property.Name;
            this.PropertyType = property.PropertyType;
            this.IsString = property.PropertyType == typeof(string);

            this.SortType = GetLnSortType(property.PropertyType);
            this.geter = new ApiAction(property.GetGetMethod());
            this.seter = new ApiAction(property.GetSetMethod());
        }