Here are two ways to save some typing when defining anonymous objects. One only works in Visual Basic, though.
Welcome to the 21st century, C#, now that case blocks support a variety of pattern-matching formats.
Both are .NET Framework-based, but they don't seem to be speaking the same language.
From Visual Studio Live! in Orlando, Microsoft's Tim Sneath offered an extensive look inside the next-generation development platform.
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
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
Case matters when moving from one language to another and, often, variable naming conflicts can be as simple as that.