C#


Visual Studio Code and the Third Wave of Source Code Editing

Imagine platform-neutral, language-agnostic tools for writing code. Awesome, yes, but using tools like Visual Studio Code to compose your programmatic masterpiece will require a bit of rethinking.

Solving UWP App-to-App Communication in IoT Apps

Writing Universal Windows Platform (UWP) apps that rely on inter-process communication is actually easy. Debugging and making them fault-tolerant is the tricky part, but it can be done with the AppServiceConnection for UWP and IoT Apps.

Selecting Groups in LINQ

Some questions can only be answered by organizing your data into groups and then finding groups that contain particular members or have particular properties.

Grouping Results in LINQ

Complex queries can be solved with a combination of simpler LINQ queries, anonymous objects and the Group/By/Into clauses. Using Group/By/Into will also give you the best possible performance for those complex queries.

Returning Raw JSON Data in Web API with Marten

Here's a trick to have Marten automatically deserialize JSON data only when you want it to.

Visual Studio Code January Build Gets Interactive

Version 1.9 of the online code editor sports a new look and some new tools to get developers up to speed quickly, including an Interactive Playground to test-drive some of the news features.

Getting All the Results When Joining with LINQ

When you want to find all the objects that are missing a corresponding object, then you need the LINQ equivalent of an outer join. Here, step by painful step, is how to build that query.

Q&A: What's New in Visual Studio 2017

Visual Studio 2017 is coming March 7. Microsoft Dev Evangelist Robert Green talks about the top new features, best improvements for mobile/Xamarin developers and more in this Q&A preview of his Visual Studio Live! session on the same topic.

Visual Studio 2017 To Be Released March 7

With a pack of updates that amount to minor fixes following the release of Visual Studio 2017 RC3 a week ago, the Visual Studio team is now set to launch a feature-complete version within a month's time.

Window 10 Creators Update Gets Its Day with Developers

Microsoft offers a laundry list of developer-oriented features to get devs up to speed with the newest, feature-complete Windows 10 Creators Update slated for early 2017 release.

Getting Device-Specific When Customizing a Xamarin Forms App

Your Xamarin Forms App needs one more little tweak, and that's to make it device-specific, so users don't freak out. Unlike the Apple tweak, the Android tweak takes a bit of work.

Working with Enumerated Values in Entity Framework

If you decide on using an Enum with enumerated values in your Entity Framework class, here are the tools you'll need to make it work. But an enumerated value shouldn't be your first choice.

Shortcuts for Defining Anonymous Objects in C# and VB

Here are two ways to save some typing when defining anonymous objects. One only works in Visual Basic, though.

Visual Studio Tools for Tizen on Preview 2

Tizen is an open source app platform targeting mainly Samsung devices, from televisions, to phones, to wearables. Yep, there's a Visual Studio Tool for that, and it's on its second preview.

Pattern Matching in C# 7.0 Case Blocks

Welcome to the 21st century, C#, now that case blocks support a variety of pattern-matching formats.

Data Clustering Using R

Find the patterns in your data sets using these Clustering.R script tricks.

More Cool Stuff in TypeScript 2.0 and 2.1

A roundup of a few more features: deprecated any type, literal datatypes, read-only properties, more!

Update: Visual Studio 2017 RC 3 Is Re-Released

The third release candidate of the venerable, all-encompassing and integrated Microsoft developer platform has been re-released after being pulled for a short time due to reports of developer machines crashing due to an odd installation issue.

Build Your Own ASP.NET Cache with WeakReferences

You want to keep an object around only as long as you have memory available, do ya? Then you need the WeakReference class.

Enforce Referential Integrity Between Documents in Marten

Marten is PostgreSQL-based, so take advantage of relational features where it makes sense. Here's an example.

Subscribe on YouTube