using array

  • Thread starter Thread starter Rvenkatesh
  • Start date Start date
R

Rvenkatesh

How to use array string in C#.Net to compare and replace
characters between strings using function.
 
Hi,
I'm not sure I understando your question, but the String class of the .Net Framework offers you a lot of intersting methods.

String.ToCharArray() might be what you are looking for. If not, then let me know exactly how I can help you.

Note that in C# you can also use pointers and do something like this:

// Compile with /unsafe
string foo = "abc123";
char [] arr = foo.ToCharArray();

fixed (char* pSrc = arr) // We have to pin the pointers to avoid gc messing araound with us
{
char *p = pSrc;
Console.WriteLine(*p);
}

Hope it helps,
-Matteo

--------------------
Content-Class: urn:content-classes:message
From: "Rvenkatesh" <[email protected]>
Sender: "Rvenkatesh" <[email protected]>
Subject: using array
Date: Wed, 6 Aug 2003 23:35:17 -0700

How to use array string in C#.Net to compare and replace
characters between strings using function.


--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
 
Back
Top