about programming and software engineering by a hungarian living in austria

Contents tagged with C#

Build 2017 Day 1

This post is a recap of the first day of Build 2017

Referencing an F# library from C# on .NET Core

Aaaand a post again, which will be deprecated at some point: currently using both F# and C# in a .net core solution is possible, but needs some workaround. Here I describe how you can do it

Working with .net core - my summary after 6 months with asp.net core on a side project

I have a side project which I started at the beginning of this year. One of the top goals of this project is to learn new things and i'm still at the beginning of this, but I already have many things working.

How the evil System.Xml.Serialization.XmlSerializer class can bring down a server with 32Gb ram

This week I worked on some interesting stuff and fortunately there was a cool learning outcome from it, which is worth a blogpost, so I summarize it here.

Talk: The Universal Windows Platform - One codebase for Mobile, Desktop, IoT, Xbox, Hololens, etc.

On the 14th of January I gave a talk at a local technology meetup in Linz called Technologieplauscherl about the Universal Windows Platform. This post is the written form of the talk, which was intended for people who do not know UWP, but have a strong background in software development (and it's even better if you have some knowledge about C#/XAML based development).

Porting a Windows 8 Store app to the Universal Windows Platform

Back in 2012 I published a small Windows Store app called PassworWallet, which already had a few thousand downloads over the years and when Windows 10 came out the daily 5-10 downloads went up to 15-20, so I thought it's time to release an update, so the last days I updated it to UWP. This post summarizes the update process.

Test In-App Purchases in Windows Universal Apps (UWP)

The Universal Windows Platform supports In-App Purchases (IAP). This feature was already available in Windows 8/8.1, but I have not used it before. In this post I explain how you can debug an IAP in a UWP app.

Fields in Types marked with beforefieldinit are initialized later when the assembly is ngened

The topic of this post is the beforefieldinit flag. Part I is basically a recap, all those things are already documented and there are great posts about that. Part II is where the fun begins. I googled very long, but I did not find that information on the web (that's why I write this now).

Building ASP.NET Applications under Mac

Last week I was in San Francisco at the Build conference and in the “Introducing ASP.NET 5 Session” there was a short demo, which was very interesting: Scott&Scott basically created an asp.net project and opened it in Visual Studio Code and compiled and started the whole thing on a Mac.

Passing data from C# to cross-compilable C++ via Windows Runtime

This post shows how to pass data from C# code to a portable, pure C++ layer via the Windows Runtime. This can be interesting to people who write portable C++ libraries, especially for mobile platforms.

Asynchronous programming in C#

Two posts from me were published on the about:performance blog about the async capabilities of C#

Marshalling Jagged Arrays from CLR to Native

This week I was working on some stuff where I calculated some values in C# and I wanted to send it to a native C++ layer to use the values there. The data was originally stored in a Dictionary<int List<long>&gt;. As soon as I realised that I want to work with this in C++ it was clear that the Dictinary and the List classes are not the best, so instead of the C# collections I used a C# jagged array and I hoped that the framework can marshal it automatically. Well I was naive…

Classes with long initialization process implemented with Tasks in C#

When I work on Windows 8 Apps I often have the situation where I have a class which has a longer initialization process (e.g. deserialising some state from the file system, loading data over the network, make some complicated calculation, etc). One solution would be to write a public 'initialize' method and call it first to initilize the class. The problem with this is that it is…