reflection last program in tutorials.

Reply Forum
Forum postyultrau @ 2009-01-16 11:34:10
ReplyReply to
example.cs(78,29): error CS0246: Can not find the Type or namespace 'PropertyInfo' est introuvable

wich is the line :

public void SetProperty(PropertyInfo propertyInfo, object value)

Is there something wrong in the example ?


Forum postWebmaster @ 2009-01-19 12:18:43
ReplyReply to
Hi,

Make sure that you have included the Reflection namespace in your file. Add the following line to the using-part, which is in the top of your file:

using System.Reflection;

That should do it :)











© net-tutorials.com 2006 - 2012

MailContact net-tutorials.com