Yesterday I fooled around with the ODP.NET drivers from Oracle. Just to create a simple thing to proof the drivers worked, I dropped a OracleConnection and two buttons on a form, named one Connect and the other (guess what) Disconnect. I double-clicked on the Connect button, added a try-open-except-errormessage. At that time I didn’t notice the red underlining the .close statement had. I double-clicked on the Disconnect button and added a try-close-except-errormessage. F9. Delphi gave me an error on the open-property (duh, it’s not a property, it’s a procedure) of the Oracle-connection. I placed the cursor on the dot, removed the word “open” and the semicolon, and pressed Ctrl-Space. Hey, I thought, let Delphi do the work. I choose “procedure Close”, and pressed enter. Again, red underlining and still compiling did not work. WTF!?
Close all, save? No!
New C# project. Add Oracle-connection, and two buttons. No rename, just double-click. F*CK! (Excuse my French) C# needs () after a procedure with no arguments. F9. It works. I can connect and disconnect to my Oracle database.
WTF!?!?!?! Is Borland pushing us to use its C# to outphase Delphi???? 🙁