-
February 28th, 2012, 10:00 PM
#1
[RESOLVED] case sensitive issue
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|