Created
March 27, 2012 14:49
-
-
Save jumboly/2216544 to your computer and use it in GitHub Desktop.
生&死=?
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.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