class Tommy : IHappy { public void Smile() { Console.WriteLine(":-)"); } }
What! How! Why?
[ code language="csharp" ] your code [ /code ]
[ code language="vb" ] your code [ /code ]
public void Foo() { // Let's see if contextual keywords work var x = from x in someThing where x < 10 select x; }
class Bas : Tentative, IEasilyPleasable { public Bas() { } public bool IEasilyPleasable:IsPleased { get { return true; } } }
<pre> ... </pre>
Get-Member AndyC | Where $PowershellSupported -eq $true | Celebrate
public static void Main(String[] args) { ;) }
template<typename T> bool IsCPlusPlusSupported(const T &syntaxHighlighter) { return syntaxHighlighter.Supports(L"C++"); }
Private Sub Wow() 'This is really great guys. Keep up the good work! dim x = 1/0 end sub
CREATE view nums as with numbers as (select n=0 union all select n + 1 from numbers) select top 100 * from numbers
template<int x, int y> struct gcd { static const int value = gcd<y, x % y>::value; }; template<int x> struct gcd<x, 0> { static const int value = x; };
public static void Main(String[] args) { Console.WriteLine("☺"); }
var a = b as C; C c = (C)b; bool d = b is C;
<blink>Great!</blink>
Nah, it doesn't, because I also have a Tentative alter-ego that isn't easily pleased at all. It usually has to deal with Windows Live applications.