Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP inlist() in c#
Message
From
03/10/2008 14:55:48
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01320903
Message ID:
01352660
Views:
43
>>>I don't think there should be a performance issue. Given:
>>>   public static class MyExtensions
>>>    {
>>>        public static string AddOn(this string s, string s1)
>>>        {
>>>            return s + s1;
>>>        }
>>>    }
then
string str = "Hello".AddOn(" Fred");
is just syntatic sugar for
string str = MyExtensions.AddOn("Hello", " Fred");
i.e. as far as the compiler is concerned they are identical

>>
>>
>>
>>Actually, I didn't see how there could be any performance issues either ... the guy who told me this though is usually pretty astute about such things, which is why I wondered about it. Could be that he was wrong. ;-)
>>
>
>Well, he is a man ;-)

As in, "If a man speaks and there isn't a woman to hear him is he still wrong?" :)
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform