JR,
This is just setting or getting a variable used by the extension. In many cases properties are just set or get with an = in Small Basic, for example: GraphicsWindow.BackgroundColor, this can be set with:
GraphicsWindow.BackgroundColor = "Red"
Or we can get the value with:
colour = GraphicsWindow.BackgroundColor
However, in this case the property also needs to pass in an argument "Name" to identify the ANN to set the property for and we use a method with arguments for this. And to determine if the value is to be set or not, there is a flag argument called "Get". Since a method function can return a value, it always returns the current value (seems reasonable). This may be a bit confusing, but seems logical enough to me?
Perhaps, your question is more to do with the implementation code reported by ILSpy in C# you highlight in your question, or perhaps to do with the use of NeuralNetwork.BinaryOutput method, or maybe just the intellisense (which I added since there was none with the original extension dll).
But for its use, it is just a property used by one of potentially several ANNs, with arguments identifying the ANN, the value to set (if we are setting), a flag to say if we are getting or setting the value, and the return is always the current value. I suppose we could have 2 functions, one for set and one for get, but its not obvious to me that is easier to understand.
This is just setting or getting a variable used by the extension. In many cases properties are just set or get with an = in Small Basic, for example: GraphicsWindow.BackgroundColor, this can be set with:
GraphicsWindow.BackgroundColor = "Red"
Or we can get the value with:
colour = GraphicsWindow.BackgroundColor
However, in this case the property also needs to pass in an argument "Name" to identify the ANN to set the property for and we use a method with arguments for this. And to determine if the value is to be set or not, there is a flag argument called "Get". Since a method function can return a value, it always returns the current value (seems reasonable). This may be a bit confusing, but seems logical enough to me?
Perhaps, your question is more to do with the implementation code reported by ILSpy in C# you highlight in your question, or perhaps to do with the use of NeuralNetwork.BinaryOutput method, or maybe just the intellisense (which I added since there was none with the original extension dll).
But for its use, it is just a property used by one of potentially several ANNs, with arguments identifying the ANN, the value to set (if we are setting), a flag to say if we are getting or setting the value, and the return is always the current value. I suppose we could have 2 functions, one for set and one for get, but its not obvious to me that is easier to understand.