Re: Making static class ToString() not possible, why?
- From: Zytan <zytanlithium@xxxxxxxxx>
- Date: 19 Apr 2007 14:04:42 -0700
But what's the "it" here? You say you want it to be automatically
invoked when you append "it" to a string, but with a static class there
*isn't* anything to append. That's the problem.
LOL!
This scenario came about from me converting a struct which overrode
ToString(), into a static class. Everything converted over fine,
except the ToString(), which is used only for debugging purposes, so
it's not a big issue. I am just curious about it.
Hope that's cleared things up for you.
Yes, you have! :)
Thanks, Jon.
.
- References:
- Making static class ToString() not possible, why?
- From: Zytan
- Re: Making static class ToString() not possible, why?
- From: Jon Skeet [C# MVP]
- Re: Making static class ToString() not possible, why?
- From: Zytan
- Re: Making static class ToString() not possible, why?
- From: Jon Skeet [C# MVP]
- Making static class ToString() not possible, why?
- Prev by Date: Re: Pressing Enter on ListBox should invoke DoubleClick
- Next by Date: Must inherit form doesn't show up in list.. bug?
- Previous by thread: Re: Making static class ToString() not possible, why?
- Next by thread: Re: Making static class ToString() not possible, why?
- Index(es):
Relevant Pages
|