Pile on the exceptions, and .NET will have your back with the tools it provides at your disposal.
The alternative to that simple error-handling combo is the Try...Catch, but it's not as simple as wrapping up your code with it.
Look behind the curtain on this one, and you'll see that code is quite magical in and of itself.
As Microsoft ends further development of LightSwitch, the "development" tool aimed at line-of-business types, it introduces an alternative: PowerApps.
- By Michael Domingo
- 10/17/2016
Goto statements, whether they're used in Visual Basic or C#, can be confounding as to their purpose in some contexts.
Each language treats case clauses differently, but there's a way you can make them less boring in C#.
Here's another area where the two languages differ.
C# might be more elegant with escape sequences, but that doesn't mean Visual Basic is weaker in this area.
How C# and Visual Basic handle characters and single-character strings is a bit inconsistent. There's no tidy solution, but it's something you do need to know.
As the end approaches for code-based sandbox support in SharePoint sites, Microsoft and third parties point to a few resources for inventorying sites that use it.
Or, how lifetime can mean different lengths of time, depending on whether it's procedural- or block-level.
It pays to be explicit and not use the emotional defaults of each language.
If you're looking for an easy way to save the user's current state, the simplest solution is use the Serialize and Deserialize method.
Nothing and null are one and the same, except in the language of programming.
New version allows for visual design and code generation of apps using Microsoft's newest Entity Framework Core 1.0, as well as popular data access framework from Telerik.
- By Michael Domingo
- 06/02/2016
Case matters when moving from one language to another and, often, variable naming conflicts can be as simple as that.
A belated 25th birthday to Visual Basic. Yes, 25 years ago, this language transformed the Windows app market in ways even Microsoft could not have imagined.
- By Michael Domingo
- 05/24/2016
Using the Stream objects correctly can speed up your I/O, protect your files and simplify your code.
Newer version of the coding extension for Visual Studio makes incremental improvements in VB.NET 14 support, and will come with Intermediate Language viewer.
- By Michael Domingo
- 04/13/2016
Microsoft offered a preview of Visual Studio '15' at Build last week. And whileit's just not quite ready for prime time, it's got an impressive number of changes with practically every tool in it that demand developer attention.
- By Michael Domingo
- 04/05/2016