Created
April 23, 2011 11:24
-
-
Save xuwei-k/938550 to your computer and use it in GitHub Desktop.
C#でも書いたゲソ
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
class イカ言語<侵略>{ | |
public イカ言語(侵略 ピコピコ){ | |
this.ピコピコ = ピコピコ; | |
} | |
private 侵略 ピコピコ; | |
public イカスミ の<イカスミ>(Func<侵略,イカスミ> 触手){ | |
return 触手(ピコピコ); | |
} | |
public イカスミ に<イカスミ>(Func<侵略,イカスミ> 触手){ | |
return 触手(ピコピコ); | |
} | |
public イカスミ を<イカスミ>(Func<侵略,イカスミ> 触手){ | |
return 触手(ピコピコ); | |
} | |
} | |
class Program | |
{ | |
public static String 料理(String 祝){ | |
return "イカスミ" + 祝; | |
} | |
public static int 計算(int 侵略){ | |
return 侵略; | |
} | |
public static int 倍(int イカ){ | |
return イカ * 2; | |
} | |
public static string しなイカ<でゲソ>(でゲソ 娘){ | |
return 娘 + "でゲソ" ; | |
} | |
public static string 作らなイカ<でゲソ>(でゲソ 二期){ | |
return 二期 + "でゲソ" ; | |
} | |
public static void Main(string[] args) | |
{ | |
var イ = new イカ言語<int>(new イカ言語<int>(1 + 1).の(計算)).を(しなイカ); | |
var カ = new イカ言語<int>(new イカ言語<int>(3).を(倍)).に(しなイカ); | |
var 娘 = new イカ言語<string>(new イカ言語<string>("スイカ").の(料理)).を(作らなイカ); | |
Console.WriteLine(イ); | |
Console.WriteLine(カ); | |
Console.WriteLine(娘); | |
Console.ReadKey(true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment