For two weeks ago my first post about ‘Dependency Injection with Visual Basic .NET’ was published on MSDN. Today the second post went live. In this post I explain the concept of using Inversion of Control containers from Visual Basic .NET code. I think that using these kind of techniques will make your code more maintainable, extensible and testable. Check it out!
I’m proud! Tonight my first blogpost for the Microsoft Visual Basic Team Blog is published on MSDN. In this post I explain the basic concept of dependency injection with Visual Basic .NET example code. This is the first post of a series of two. For those who are interested, please find below a link to the post.
Are you interested in creating a Console App in Visual Basic and run it on Linux? Or running your Xamarin.Forms-App written in Visual Basic on an iPhone, Android or a Windows Tablet? Thanks to .NET Standard, .NET Core and Visual Studio 2017 Update 3 it is now possible!
My friend Klaus Löffelmann has written – for the VB Team blog on MSDN – an excellent post about cross platform development with Visual Basic.NET. Since the release of Visual Studio 2017 Update 3, you are able to use Xamarin.Forms in combination with a Visual Basic .NET platform. The functionality is still a bit limited to C#, but you can write real, native apps for Android, iOS and Windows UWP!
How cool is that! This post is highly recommended for everyone who wants to learn about the next step in Visual Basic development.
Tuples are primitive types where you can easily combine multiple values to one variable. They are as a datatype not completely new for C# 7.0 or Visual Basic 15, but the way you can use them is, with the new System.ValueTuple type, much improved. In this post I will show you how you can take advantage of the streamed syntax of value tuples. The old System.Tuple became not very populair, mainly because the results where not strongly named; you have to use them like result.Item1, result.Item2 etc.
Microsoft will release Visual Studio 2017 on March 7. They organize a two-day virtual event to show the world the beauty of this latest release.
On March 7, you can watch a live stream with Julia Liuson, Brian Harry, Miguel de Icaza, and Scott Hanselman as they share the newest innovations in Visual Studio, .NET, Xamarin, Azure, and more. After the keynote, Microsoft engineers will lead interactive technical demo sessions to help you get the most out of Visual Studio 2017 and the rest of their tools and platform. On March 8, you can get productive even faster by joining a full day of live interactive trainings. Make sure you will sign up for these trainings.
But the event is not only virtual. You can join a couple of locally hosted events. Speaking about the Netherlands you have the choice of a couple events, geographically spread around the country. I’m not sure this list is comprehensive, but you can choose already from a nice list!
In this post I want to point you to a book which will help you to make switching between C# and VB.NET and vice versa more easily. The title of the book is actually quite self describing: ‘C#-Visual Basic Bilingual Dictionary’ and is written by Tim Patrick.
From the back: “Built on Microsoft’s powerful .NET Framework, C# and Visual Basic are complete equals in terms of coding power and application development possibilities. In today’s multi-platform environment, an understanding of both languages is a job requirement. The C#-Visual Basic Bilingual Dictionary unifies the languages by providing clear, functional equivalents for all syntax and grammar differences.
Complete coverage of all language keywords. Nearly 900 dictionary-like entries cover every Visual Basic and C# keyword and grammar feature, including VB’s “My” namespace.
Examples in both languages. Hundreds of code samples in both C# and Visual Basic make translations between the languages clear and easy to understand.
Full support for Roslyn. Each chapter covers the latest language features from Visual Studio 2015 and Microsoft’s “Roslyn” compiler.
Whether you work on a team that uses both languages, or just need to understand a technical article written in that “other” language, the C#-Visual Basic Bilingual Dictionary is an essential resource for developers crafting Microsoft software solutions.”
You can browse trough the content on the Amazon website. I’ve just ordered one 😉
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 memory address and is allocated on the heap. A reference type can be a self-describing type, a pointer type or an interface type. As said, the native .NET types are in general fully compatible, but naming and assigning is different between VB.NET and C#. Continue reading
One of the smartest ways to verify if two sequences of the type List(Of T) are equal, is to use LINQ. Or more specific, the extension method SequenceEqual(). It will compare both list in exact order and it returns a Boolean value, indicating if both lists are exactly the same.