Home > Archive > C# > January 2006 > What is the C# equivalent of ControlChars.NullChar
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
What is the C# equivalent of ControlChars.NullChar
|
|
| ltnats@yahoo.com.au 2005-12-07, 4:01 am |
| Hi there,
I have tried for the last hour to work out how to do this in
C#:
Debug.WriteLine("Foo" & rtb.Rtf.Replace(ControlChars.NullChar, "") &
"Bar")
Can someone please help me out here........
Thank you for your time,
Scott.
| |
| Ciaran 2006-01-10, 4:09 am |
| Debug.WriteLine("Foo" + rtb.Rtf.Replace("\0", "") + "Bar");
--
Ciaran O'Donnell
There are 10 types of people in this world. Those that understand binary and
those that don't
<ltnats@yahoo.com.au> wrote in message
news:1133930336.182467.212020@f14g2000cwb.googlegroups.com...
> Hi there,
> I have tried for the last hour to work out how to do this in
> C#:
>
> Debug.WriteLine("Foo" & rtb.Rtf.Replace(ControlChars.NullChar, "") &
> "Bar")
>
> Can someone please help me out here........
>
> Thank you for your time,
>
> Scott.
>
|
|
|
|
|