[Python.NET] Re: Accessing a list that is a read-only property?

2020-03-03 Thread Victor “LOST” Milovanov
Hi Mark, You are facing https://github.com/pythonnet/pythonnet/issues/514 At this moment the easiest way to do it is to add a method to ServiceInformation to add an item to SerivceHosts collection. E.g. public void AddServiceHost(string serviceHost) => this.ServiceHosts.Add(serviceHost);  then call

[Python.NET] How do you add an element to a List in a read-only property?

2020-03-03 Thread mark
Hello, I think this is a really basic question, but I haven't found a solution. I've been asked to use a .NET assembly from python. I have programed in other languages, but not C#. In the brief time I've used it, PythonNet has been fantastic... with one little wrinkle. Here's a pared down

[Python.NET] Accessing a list that is a read-only property?

2020-03-03 Thread Mark Brighton
Hello, I think this is a really basic question, but despite searching I haven't found a solution. I've been asked to use a .NET assembly from python. I have programed in other languages, but not C#. In the brief time I've used it, PythonNet has been fantastic... with one little wrinkle. H