class Tommy : IHappy
{
public void Smile()
{
Console.WriteLine(":-)");
}
}
-
-
What! How! Why?
-
Hey, if you could get VS to show smilies (and write them to the console), then I'd be really impressed.Bas said:What! How! Why?

Herbie
-
Bas said:
What! How! Why?
[ code language="csharp" ] your code [ /code ]
[ code language="vb" ] your code [ /code ]
-
Now it should just disable smilies inside those blocks.TommyCarlier said:Bas said:*snip*[ 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;
}
And they don't, as I expected.
-
Ooh, 10pt Consolas; I approve!
-
TommyCarlier said:Bas said:*snip*
[ code language="csharp" ] your code [ /code ]
[ code language="vb" ] your code [ /code ]
class Bas : Tentative, IEasilyPleasable
{
public Bas()
{
}
public bool IEasilyPleasable:IsPleased
{
get { return true; }
}
} -
Valid C# that is not.Bas said:TommyCarlier said:*snip*
class Bas : Tentative, IEasilyPleasable
{
public Bas()
{
}
public bool IEasilyPleasable:IsPleased
{
get { return true; }
}
}
-
Correct. But since I always Alt+F10 to implement interfaces, I chose not to care.Sven Groot said:
Valid C# that is not.Bas said:*snip*
-
NiceTommyCarlier said:Bas said:*snip*[ code language="csharp" ] your code [ /code ]
[ code language="vb" ] your code [ /code ]
-
strange... I'll look into that, perhaps I've accidentally done the code *after* the smilely replacement... the smiley code is supposed to ignore anything withinSven Groot said:
Now it should just disable smilies inside those blocks.TommyCarlier said:*snip*
public void Foo()
{
// Let's see if contextual keywords work
var x = from x in someThing
where x < 10
select x;
}
And they don't, as I expected.
<pre> ... </pre>
-
Doesn't "Tentative" has its own implementation of "IsPleased"?Bas said:TommyCarlier said:*snip*
class Bas : Tentative, IEasilyPleasable
{
public Bas()
{
}
public bool IEasilyPleasable:IsPleased
{
get { return true; }
}
}
I think you should just override that instead of implementing another interface.
-
language options: CSHARP (C#), HTML, SQL, VB (for VB, VB.NET, etc...), JS (JavaScript), PSH (Powershell)Duncanma said:
strange... I'll look into that, perhaps I've accidentally done the code *after* the smilely replacement... the smiley code is supposed to ignore anything withinSven Groot said:*snip*
<pre> ... </pre>
-
Duncanma said:
language options: CSHARP (C#), HTML, SQL, VB (for VB, VB.NET, etc...), JS (JavaScript), PSH (Powershell)Duncanma said:*snip*
Get-Member AndyC | Where $PowershellSupported -eq $true | Celebrate
-
Duncanma said:
language options: CSHARP (C#), HTML, SQL, VB (for VB, VB.NET, etc...), JS (JavaScript), PSH (Powershell)Duncanma said:*snip*
public static void Main(String[] args) { ;) }
-
CannotResolveSymbol said:Duncanma said:*snip*
public static void Main(String[] args) { ;) }
template<typename T>
bool IsCPlusPlusSupported(const T &syntaxHighlighter)
{
return syntaxHighlighter.Supports(L"C++");
}
And I guess the answer to that is no. -
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 -
doh! I'll take a look at that....CannotResolveSymbol said:Duncanma said:*snip*public static void Main(String[] args) { ;) }
Giving credit where credit's due: source code formatting code from http://www.manoli.net/csharpformat/
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.