Skip to content

Instantly share code, notes, and snippets.

@toebbel
Created August 12, 2012 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toebbel/3331637 to your computer and use it in GitHub Desktop.
Save toebbel/3331637 to your computer and use it in GitHub Desktop.
Example for shared code
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