VB.NET to C# – 02
Working with data types

VB.NET to C# – 02
Working with data types

The Common Type System (CTS) ensures that components written in C# or VB.NET can interact with each other. The CTS supports two general categories of types: Value types and Reference types. Value types directly contain data. An instance of a value type is either allocated on the stack or allocated inline in a structure. These types can be natively built-in (native data types), user-defined or enumerations. A reference type, in contrast to a value type, stores a reference to the value’s…

Read More Read More

Will I see you at TechDays 2016?

Will I see you at TechDays 2016?

In a few days Microsoft TechDays will start. This is the major Dutch tech event on Microsoft – and other open source technologies. On this event many (respectable!) speakers will have their sessions on various topics. Speakers you know from your local community, but also Microsoft employees from Redmond will visit Amsterdam. The event will be held on October 4 and 5 in Amsterdam, The Netherlands.

Visual Studio Team Services – NuGet Packages

Visual Studio Team Services – NuGet Packages

Since a couple of months you can download an extension for Visual Studio Team Services (VSTS) to manage your own NuGet packages. The extension is called Package Management. It’s is still in preview, but Microsoft supports it already as were it released. With this tooling you can host your own NuGet feed, containing your – or other custom NuGet packages. The big advantage is that you can share NuGet packages with your organization. They are available for consuming from your…

Read More Read More

Started a new MCSD certification : Azure Solutions Architect

Started a new MCSD certification : Azure Solutions Architect

Last week I decided to get started with a new MCSD certification: Azure Solutions Architect. In a world where more customers want to take advantage of Microsoft Azure, it’s important to get my knowledge up-and-running. At my own company we are using Microsoft Azure for almost all our backend tasks. We are hosting sites, web services, SQL Azure databases and for example Virtual Machines with a regular SQL Server installation. We can manage them fine, but for some real troubleshooting…

Read More Read More

Missing dropdown controls in the code editor

Missing dropdown controls in the code editor

Today I encountered a strange behavior in the code editor of Visual Studio 2015. The dropdown controls with the list of controls and procedures were missing! I thought it was a glitch in the software; as it still not officially released, you could expect some issues. But no… I discovered today that it is a feature you can enable and disable. Go to Tools > Options > Text Editor > All Languages and simple check the option ‘Navigation bar’. Some…

Read More Read More

Year first date literals in Visual Basic .NET

Year first date literals in Visual Basic .NET

Since I write on a daily base unit tests, I’m wondering more and more why there is not an easy – and especially unambiguous – way to provide a hardcoded date to a variable or procedure argument. Do you know, without any doubt, what this date actually means? Was I born on the 5th of June or the 6th of May? Visual Basic .NET will support now a good ISO-standard, which starts with the year. It follows the convention of…

Read More Read More

Show generated SQL of Entity Framework in Visual Basic .NET

Show generated SQL of Entity Framework in Visual Basic .NET

When you are writing LINQ queries against an Entity Framework context, you don’t have to worry about the SQL which is generated and executed. However, in some cases you may be interested in this SQL. It’s quite easy to switch on a logging mechanism which will be display all executed SQL in your Debug window. You have to provide an Action to the DbContext.Database.Log property. You provide a lambda with the functionality you want. If you want you can log…

Read More Read More

Query a CSV file with LINQ and Visual Basic .NET

Query a CSV file with LINQ and Visual Basic .NET

Once in a while I’m still surprised by the functionality of LINQ. I saw a question on the Internet from a developer who asked if it is possible to query against Comma Separated Values (CSV) in a file. Based on one of the answers I wrote this post, because it’s really great what you can do with so less source code. As you probably already knew, I’m a big fan of LINQPad, which I will use to demo my examples….

Read More Read More