Re: ArgumentException: Property set method not found

66 views
Skip to first unread message

piter....@gmail.com

unread,
Oct 12, 2012, 4:59:50 AM10/12/12
to ssh...@googlegroups.com
Hello,

 This is designed behavior. Script is not allowed accessing private properties/methods.

 Whenever you need such custom behavior, you should provide your custom ObjectBinding. For example see UnitTest called DisableBindingToStringMethod.

Regards,
 Petro

On Monday, October 8, 2012 3:33:35 PM UTC+2, RFuente wrote:
Hello everyone.

I use a class (SocketDeviceServer) which inherits from System.Net.Sockets.TcpListener. This class just implements a TCP server waiting for incoming clients.
When an object of this class is instantiated inside a Visual Studio project, it works without problem but when trying to instantiate fom a script it throws the following exception (see attached image):

ArgumentException: Property set method not found.

Searching Google I have found that there could be some problems with reflection inside inherited classes: http://stackoverflow.com/questions/10041458/property-set-method-not-found-in-a-derived-type

I would like to suggest the development crew to have an eye on this issue and think about changing some reflection calls in case they imply an inherited class object.


Thank you very much for your work.
Kindest regards.
Reply all
Reply to author
Forward
0 new messages