POV-Ray : Newsgroups : povray.off-topic : new C# stuff : Re: new C# stuff Server Time
6 Sep 2024 17:20:11 EDT (-0400)
  Re: new C# stuff  
From: Mike Raiford
Date: 23 Jan 2009 10:34:14
Message: <4979e376$1@news.povray.org>
Warp wrote:

>   Ah, so this extension can be used for operator overloading in C#?
> Nobody told me that before.

Operator overloading has existed since C# 1.0

I think the poster was trying to demonstrate a syntatic sugar feature 
you may be familiar with and might like.

Rather than using, for example:

GraphicsExtensions.DrawButton(g, rcArea, caption);

You could define it so you simply type

g.DrawButton(rcArea, caption);

It just simplifies things a bit.




-- 
~Mike


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.