So we have this class FilePickerDialog derived from CustomDialog class.
FilePickerDialog is built with .net framework while CustomDialog is built with .net6
Then we have an application in .net6 that instantiate objFilePickerDialog and later on casted to CustomDialog using objFilePickerDialog as CustomDialog, this resulted as a null.
Once we rebuilt FilePickerDialog into .net6, then the casting works. However, we are not sure what is the explanation to this situation. Can someone help to clear the air for us?