/// <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()); }
/// <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()); }