PC Review


Reply
Thread Tools Rate Thread

casting a string value for SetValue in PropertyInfo

 
 
Bob
Guest
Posts: n/a
 
      1st Oct 2003
This works only when the property return type is string:

SomeObjectsPropertyInfo.SetValue(SomeObject, SomeStringValue, Nothing)

Is there a good way to try to automatically cast the string value I'm trying to
pass into SetValue as the correct type?

Bob

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PropertyInfo.SetValue() FourEyes Microsoft C# .NET 10 9th Nov 2007 02:01 PM
PropertyInfo.SetValue on new ObjectCollect =?Utf-8?B?VGltIFBhY2w=?= Microsoft Dot NET Framework 1 22nd Aug 2007 08:50 PM
PropertyInfo.SetValue ThisBytes5 Microsoft C# .NET 3 11th Dec 2005 03:17 PM
PropertyInfo Setvalue =?Utf-8?B?SHVnbyBMZW9uYXJkbw==?= Microsoft Dot NET 2 11th Nov 2005 01:56 PM
propertyinfo.setvalue Paul Microsoft VB .NET 1 16th Dec 2004 11:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 AM.