Windows 10 IoT – Raspberry PI 2

Finaly I received my Raspberry PI 2, just in time to make some tests with Windows 10 IoT (Internet of Things).

Microsoft released Windows 10 IoT that can be installed in Raspberry PI 2 and allow us to develop in CSharp (for example) with full access to sensors and devices.

This post is just to show how easy it is to program in CSharp a simple class to access a 7 Segment led using Raspberry.

7segmentos2

(more…)

Dynamically Executing Code in .NET – Compiling C# Code at Runtime

In a recent project, I was confronted with a necessity to change some parts of code algorithms very quickly because government changes. Updating the entire application was not an option, so I decided to implement a feature to allow the application to download small pieces of code that changed frequently to use it.

The application perform some tax math that changes in a monthly basis. Now I can pull only changed code and use it to perform the routine.

To do this I have used the CSharpCodeProvider class from Dotnet framework, that allow us to use C# code as scripting language in my C# application.

In this article I am creating a simple application that have two listbox, the source have all country names and the target will be populated from our script code.

(more…)