i have a string aabccefsdss.how can i get the string abcefsd.
or write the fallowing string with only character
occurrence of once .
Answer / dinesh
string s = "aabccefsdss";
char[] a = s.ToCharArray();
string d="";
foreach (char c in a)
{
if (!d.Contains(c.ToString()))
{
d = d + c;
}
}
MessageBox.Show(d);
| Is This Answer Correct ? | 7 Yes | 0 No |
Is c# and c sharp same?
what are the different ways to cleaning up objects?
what is the difference between arraylist and hash table using a simple program?
3 Answers CGI, Polaris, SunGard,
What?s the difference between the Debug class and Trace class?
What is data binding with example?
How to call a function when a class implements 2 interfaces and function is present in both interfaces?
How big is an int16?
List the different stages of a thread?
Does a class need a constructor c#?
Explain the difference between directcast and ctype.
What is unmannaged code and will CLR handle this kind of code or not .
Explain ACID rule of thumb for transactions.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)