I have a .NET type 'MyClass' with a protected method that takes in an out parameter. For example:
protected bool MyMethod(out string value)
I am able to call this method on a 'MyClass' object created in Iron Python script. But however, the out variable 'value' is 'None' even if it is assigned some value in the method.
Now if I make it public, then all is fine.
Is this the expected behavior? Why does Iron Python allow protected methods to be called? Is it a conscious decision?
I am using Iron Python 2.0.1