Skip to content

Instantly share code, notes, and snippets.



Created Aug 12, 2012
What would you like to do?
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