C#


Customizing a Xamarin Forms Application, Part 2

Last time, I created the app. This time, I take care of a few annoying but important issues with it, especially in the area of the user's experience with application connectivity.

Testing Experimental Code in Production with Scientist.NET

A .NET port of the Ruby library allows for experimental testing of code that's gone to production.

New Xamarin Tools in Visual Studio 2017 RC

Two new tools for cross-platform developers provide insight into app performance and allow for real-time XAML previews.

Testing Only the Code You Write: Isolating Components with Moq

When you're testing an ASP.NET MVC controller (or, really, any class at all) you want to make sure the code that fails is the code you're testing. Moq provides a simple way to isolate the code you're testing and lets you generate test cases.

It's Safe to Handle Unhandled Visual Basic and C# Exceptions

Pile on the exceptions, and .NET will have your back with the tools it provides at your disposal.

New in VS 2017 RC1: Cordova, Unity Tools Updates

The Visual Studio 2017 RC from a week ago introduced speedier build and edit-debug tools for TACO, and an improved IDE for Unity game devs.

Best Practices for Lazy Loading in Entity Framework

Sometimes you want child objects retrieved with the parent object, and sometimes you don't. What you NEVER want is to retrieve child objects accidentally. Here's Peter's advice on how to get the best performance when loading child objects.

Azure Data Lakes Tools for Visual Studio Code Now in Preview

The ability to embrace U-SQL jobs via authoring, scripting, extensibility via the VSCode environment and using C# is the key to this tooling preview.

New Visual Studio Versions Target Windows, Mobile and Mac Developers, Boost DevOps

Microsoft Corporate Vice President Scott Guthrie kicked off the Connect(); conference with an action-packed keynote where he revealed significant tooling improvements impacting mobile app development, containerized app dev, cross-platform mobile DevOps and serverless compute architectures, and more.

Get Used To Calling It 'Visual Studio 2017'

The new name for what we've been calling Visual Studio '15' is actually the smaller of several big news items to come out of today's Microsoft Connect(); event oline. Among the bigger reveals is the preview of a Mac-native version of Visual Studio.

What the Single Responsibility Design Principle Has to Do with C# Best Practices

In this Q&A, highly regarded developer and educator Scott Allen shares his thoughts on coding with C#.

Life Without On Error Resume Next

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.

Setting the Order of Your Script Files

Script bundling speeds up your application by reducing the time it takes to download all of your JavaScript code. But you'll need another object to get your files added to the page in the order you want.

TypeScript 2.1 Is Now Smarter Than Ever

It's like a better version of TypeScript 2.0, only this incremental update adds "smarter" inference and a bevy of other improvements.

VS Team Services Sprint 108 Is More Like a Jog

Visual Studio Team Services is at Sprint 108 this week, and it might seem like a lightweight with mainly fixes, but it does pack quite a few new features -- integrating Team-based collaboration features, build and replace enhancements, Docker support -- to be worthy of attention.

Neural Networks Using the R nnet Package

The R language simplifies the creation of neural network classifiers with an add-on that lays all the groundwork.

Organize Your Tests to Reduce Overhead

In test-driven development, you have to decide how you'll divide your test methods between your test classes. The best solution is the one that requires the least effort on your part and implements the Single Responsibility Principle for tests.

Defining Columns, Primary, and Composite Keys in Entity Framework

There are two attributes you can put on your entity class properties: one is a convenience, the other is essential, and both are required when the primary key for a table consists of two columns.

Sez Who? Support for iOS 10 Speech Recognition in Xamarin

With Apple's update to its phone OS, we look at the support that Xamarin has for it by building a simple speech app.

JavaScript IntelliSense Disabled in Visual Studio Code 1.7.1

Just as the Visual Studio team started rolling out the October 2016 Build version 1.7 this week, the team did an about-face with an incremental "recovery build" update that disables JavaScript IntelliSense for the time being. Still, there's lots of new and enhanced productivity and debugging features to check out in this version.

Upcoming Events

.NET Insight

Sign up for our newsletter.

I agree to this site's Privacy Policy.