Skip to content

Instantly share code, notes, and snippets.

@jumboly
Created March 27, 2012 14:49
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 jumboly/2216544 to your computer and use it in GitHub Desktop.
Save jumboly/2216544 to your computer and use it in GitHub Desktop.
生&死=?
using System;
using System.Linq;
using System.Text;
namespace ConsoleApplication5
{
class Program
{
static void Main(string[] args)
{
var life = Encoding.UTF8.GetBytes("生");
var death = Encoding.UTF8.GetBytes("死");
var x = life.Select((b, i) => (byte)(b & death[i])).ToArray();
Console.WriteLine(Encoding.UTF8.GetString(x));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment