Created
August 12, 2012 12:19
-
-
Save toebbel/3331637 to your computer and use it in GitHub Desktop.
Example for shared code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
namespace SomeProject.sharedCode | |
{ | |
public class SharedClass | |
{ | |
public byte[] Encode(String text) | |
{ | |
var enc = new System.Text.UTF8Encoding(); | |
return enc.GetBytes(text); | |
} | |
public String Decode(byte[] data) | |
{ | |
return UTF8Encoding.UTF8.GetString(data, 0, data.Length); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment