• Posts Tagged ‘C#’

    Porting WPF applications to Windows Universal Apps

    by  • May 20, 2015 • .Net, Programming • 1 Comment

    This article is part of a series of articles I have written covering WPF; improving its performance, its quirks and associated workarounds, as well as porting it to WUA Applications: Improving WPF Rendering Performance (Part 1) Improving WPF Rendering performance (Part 2) Improving WPF Rendering performance (Part 3) Troubleshooting Video Playback in WPF Writing...

    Read more →

    Plugin Architecture in Azure

    by  • May 2, 2013 • .Net, Journal, Programming • 1 Comment

    Trade-offs have to be made when moving to Cloud platforms, that’s a fact, the question is how much of a comprise do you have to make. Performance and flexibility are two such entities that are intertwined. In this article I want to talk about how you can build a plugin based architecture in Azure...

    Read more →

    String reversal in C

    by  • October 27, 2012 • Programming • 0 Comments

    Recently I have been trying out a simple but really interesting interview question – how do you reverse a string in C? Hopefully most people should be aware that string functions in C are limited, there are ones like strlen, strcopy etc. but there isn’t a string.reverse such as those present in high level...

    Read more →

    C# 5 …carry on awaiting

    by  • May 4, 2012 • .Net, Journal, Programming • 0 Comments

    This made me chuckle when I saw this. .Net 4 has the awesome Task.Factory.StartNew and .Net 4.5 added the syntactic sugar of Task.Run, but if you combine it with some of the functionality in C#5 the following code:   When unwrapped becomes:   Yes you are seeing right, you are awaiting the await…┬áTask.Factory.StartNew is...

    Read more →

    Bit level functionality in C#

    by  • February 17, 2012 • .Net, Articles, Programming • 5 Comments

    Low level operations are commonplace for embedded developers but usually are overlooked by application level developers, but they still offer some useful quirks. After reading a few articles I decided to port some of the most common and useful bit level hacks to C#. More information about the built in operators that are found...

    Read more →

    Bug Fixing and Tracking with Reflection

    by  • January 29, 2012 • .Net, Programming • 0 Comments

    If you ever meet a programmer that tells you that they code everything perfect first time and don’t need to do any testing or bug fixing, you should slowly roll up a newspaper (if you have one handy) and hit them over the head while saying ‘No ….no’. There is a tiny amount of...

    Read more →

    MEF, MAF and all C# Plugins in-between

    by  • January 14, 2012 • Journal • 2 Comments

    Over the years one of the most common things people try to implement using a language is the concept of plugins to extend an application, some languages or frameworks do this easily and some can be a bit more tricky; I’m looking at you COM. Being aimed at the business application .NET has needed...

    Read more →

    Nanos gigantium humeris insidentes

    by  • October 25, 2011 • Journal • 1 Comment

    Not everyone has learnt Latin; does anyone any more? but I think this phrase applies, roughly translated as the much more commonly retorted phrase ‘Standing on the shoulders of giants’ Over the last few weeks some of the truely great computer scientists have died, so they can dream of electronic sheep. Most people would...

    Read more →

    Programmatically saying hello to the C# compiler

    by  • September 24, 2011 • .Net, Programming • 0 Comments

    Like most of the best features of the .Net Framework, access to the C# and language compilers and syntax parsers are hidden away. These provide you the ability to traverse language independent code trees (remember .Net languages all compile down to MSIL) and allow compilation of .Net languages. For this I will show you...

    Read more →