8 Replies
Since it's set in the ctor, you will need to call it
when I am trying the call the windowManager.SwitchWindow it gives me unhandled exception
Even if with just
public LockscreenWindow(): base() {}
what is ctor?
Constructor
oh
can you show example with a code snippet by any chance?
Angius
Even if with just
public LockscreenWindow(): base() {}
Quoted by
<@85903769203642368> from #How to share instance of an object in base class to its inherited classes? (click here)
React with ❌ to remove this embed.
I did
The child class's constructor needs to call the parent class's constructor, for example with
: base()
Alternatively... you could set that value in the field directly, not in the ctor