With ArcGIS Pro SDK 1.4 I could do this:
where geodatabasePath can be path of FGDB or SDE file.
I know that now there are constructor overloads for FGDB and SDE. But the problem is that I don't know which database type will be presented by geodatabasePath.
How can I create an instance of the Geodatabase by path that can be either path of FGDB or SDE file? Or maybe there is some method that can say what geodatabase type presented by a path?