Hi,
I am getting an object property based on the variable i passed in, however, i found the case sensitive issue caused the property cannot be found.
e.g., there is a property call RoleID, the value from the variable is ROLEID. The result will be null since the case different. Do you have any idea i can fix the code below to ignore the case?
PropertyInfo lPropInfo = (pTargetObj.GetType()).GetProperty(lP2.lPName.Replace("@", ""));
Many Thanks


Reply With Quote

Bookmarks