获取属性名:PropertyNameHelper namespace NCS.Infrastructure.Querying { public static class PropertyNameHelper { public static string ResolvePropertyName<T>(Expression<Func<T, object>> expression) { var expr = expression.Body as MemberExpressio
import UIKit //必须要有@objcMembers修饰符,否则获取到的成员属性为0 @objcMembers class Person: NSObject { var name: String? var age: Int = 0 var title: String? class func propertyList() -> [String] { var arr: [String] = [] var count: UInt32 = 0 let list = class_copyProp