X# syntax for constructor chaining
Posted: Tue Oct 06, 2020 10:57 am
Hello X# Community,
I would like to use constructor chaining that means one constructor in a class should call another constructor with different arguments.
I found an old post by Robert from 2016.
So is calling Self() still the only option?
I would prefer the C# style like:
Constructor(strDateiname As String) : Self()
But its not urgent since right now I am using a second parameter with a default value.
Kind regards,
Peter
I would like to use constructor chaining that means one constructor in a class should call another constructor with different arguments.
I found an old post by Robert from 2016.
So is calling Self() still the only option?
I would prefer the C# style like:
Constructor(strDateiname As String) : Self()
But its not urgent since right now I am using a second parameter with a default value.
Kind regards,
Peter