c#反射--記錄一種sql組裝方式

Type type = model.GetType(); //獲取類型 System.Reflection.PropertyInfo propertyInfo = type.GetProperty(textType); decimal value = (decimal)propertyInfo.GetValue(model, null); 補充一下反射的類型,定義了一個公共方法算法 publi
相關文章
相關標籤/搜索