By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,559 Members | 1,150 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,559 IT Pros & Developers. It's quick & easy.

using array

P: n/a
How to use array string in C#.Net to compare and replace
characters between strings using function.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <v_*******@hotmail.com>
Sender: "Rvenkatesh" <v_*******@hotmail.com>
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.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.