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 |
What is console used for?
Hi, Can we implement the Abstract class on interface in c#, If yes then provide the code implementation
What is static classes in c#?
What is a deadlock lock?
What is a protected class c#?
What is Interface Polymorphism?with E.g
How do you create multiple inheritance in C#?
5 Answers Infosys, KenIndia, Microsoft,
How do I create a delegate/multicastdelegate?
What namespaces are necessary to create a localized application?
2 Answers Rolta, Siebel Systems, Visual Soft,
What are anonymous types in c#?
Explain the role of the datareader class in ado.net connections?
What is the default value of datetime in c#?
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)