2012 was an amazing year, here’s a summary!

Posted by Filip Ekberg on January 8 2013 1 Comment

Saying that a lot happened in 2012 is probably an understatement. At least both on this blog and in my personal life, a bunch of amazing things have happened. I really hope that your previous year was good and let’s hope for an even better 2013. To start this year off I want to summarize […]

Vote on HN

A summary of 2011 and a look at what is about to come

Posted by Filip Ekberg on January 5 2012 5 Comments

Happy 2012 folks! I hope you all had a wonderful new years eve! The year 2011 has been very interesting, we’ve had the opportunity to see some very exciting things that is about to reach the market. I’d like to summarize what I’ve been writing about in 2011 and breifly tell you guys what’s about […]

Vote on HN

Exploring reflection – Finding a value in any of the objects properties

Posted by Filip Ekberg on October 8 2011 4 Comments

I want to explore reflection by playing with both reflection, anonymous types and dynamically typed things all at once! My goal is not to be confusing or anything, but it is to leave out the parts that are redundant. So let’s get to it! I sometimes find myself having a lot of data that I […]

Vote on HN

Playing with anonymous types in C#

Posted by Filip Ekberg on October 6 2011 6 Comments

In C# 3.0 something called anonymous types was introduced, this means that a certain context can have a type that is not defined anywhere except in that context. This has been seen a lot in LINQ-queries over the years. Here’s an example of an anonymous type: var person = new { Name = "Filip" }; […]

Vote on HN

Making code more readable with anonymous functions

Posted by Filip Ekberg on October 5 2011 8 Comments

If you come from a world filled with JavaScript you might be used to seeing the click handler logic defined at the same place as where you defined the click handler itself. For instance, look at this code: $("#submit").click(function(){     performPostAndRedirect(); }); I think it’s safe to say that this kind of code is […]

Vote on HN

Using dynamic in the real world with IronPython

Posted by Filip Ekberg on October 4 2011 Leave a Comment

My last posts have been a lot about what you can do to explore the dynamic world in .NET and what it might be good for. But I think it’s time for some real fun with dynamic! So go ahead and fire up Visual Studio, see to it that you got NuGet installed, now let’s […]

Vote on HN

Invoke a dynamic object as if it were a method

Posted by Filip Ekberg on October 3 2011 1 Comment

In my previous post I talked about how you can extend the DynamicObject so that you can override TryInvokeMember and TryGetMember. However, these are not the only methods that you can override. I wanted to take a brief moment and talk about one of the other methods that you can override as well, this being […]

Vote on HN

Extend your objects with DynamicObject to get a dynamic experience

Posted by Filip Ekberg on October 2 2011 Leave a Comment

If you have ever programmed in a dynamic programming language you know that you can pretty much ask for anything on any object, consider this code in any dynamic programming language: var person = new Person(); person.Name = "Filip"; person.Location = "Gothenburg"; In the Person-structure used above, the property Location actually doesn’t exist, but in […]

Vote on HN

Adding properties and methods to an ExpandoObject, dynamically!

Posted by Filip Ekberg on October 2 2011 4 Comments

Meanwhile I am planning and writing manuscript and code samples for my upcoming video series that will cover “Programming fundamentals using C#”, I thought it was time for a short post on some dynamic programming in C#! Another thing worth mentioning is that I will be using Visual Studio 11 Developer Preview, if you haven’t […]

Vote on HN