Create BaseRef.cs

IsValid is correct, Decode is not.
Update BaseRef.cs
Update README.md to add C# implementation.
Add Tests for C# implementation
Merge pull request #2 from cmaneu/master

Add C#/.net implementation