//look up the attribute matching the listid using Reflection and LINQ
Type dtoType = typeof(AppInitParamsDTO);
PropertyInfo pi = dtoType.GetProperties(BindingFlags.Instance | BindingFlags.Public)
.Where(
x => typeof(AppInitParamsSettingsListNameAttribute)
.GetProperty("ListName")
.GetValue(Attribute.GetCustomAttribute(
x, typeof(AppInitParamsSettingsListNameAttribute)), null).ToString()
== listId).First();
Providing Rest Clients Nearly as Bad as Publishing SOAP Contracts
-
Even still, many developers and architects have continued to emotionally
cling to the SOAP bad old days, wherein the contracts between a server and
a cli...
6 years ago
No comments:
Post a Comment