Freestyle Coding

Programming in the Real World

  Home  |   Contact  |   Syndication    |   Login
  49 Posts | 0 Stories | 38 Comments | 0 Trackbacks

News

Tag Cloud


Archives

Post Categories

Charity

Conferences

Professional

Projects

Social Networks

Interfaces

It was unofficially announced yesterday that XNA has officially hit the end of its life. Fortunately, as mentioned in the last post, I'm working on porting everything out of XNA. However, there is stall a lot in XNA to love. As such, I have been making it a point to borrow some of the better features of XNA. Think of this post as the beginning of a series of posts called "Recreating XNA in Windows Store Apps." The first thing I needed to recreate was a GameComponent. For those of you not familiar ......

Microsoft keeps telling us that we should create interfaces for everything and program to them. This is all fine and dandy, but this can become a nightmare when dealing with dynamically loaded libraries. Let us begin with an interface: namespace Interfaces {public interface ICommon {string RequiredField { get; }void DoSomethingWithTheRequiredF... Now, we will create 2 different implementations of the interface. The first will implement ICommon for use with our Sql database: namespace Sql {public ......