With ArcGIS Pro SDK 1.4 I could do this:
<SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Geodatabase</SPAN><SPAN class="punctuation token">(</SPAN>geodatabasePath<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
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?