I'm reading a C# project to implement a similar simple version of it in Python.
- I'm not a C# programmer
Somewhere in codes there is a this and is statement together that I can't figure out what they are doing together:
public abstract class PredictionTrial
{
...
public bool DoneSuccessfully
{
get
{
return (this is PredictionTrialSuccess);
}
}
...
}
PredictionTrialSuccessis a subclass of this class.
My question is that what this is is doing here with the combination of get?