- ng new ProjectName – creating a new project file
- ng serve -o — running application
- ng generate component Pagename — creating a new page
- ng g c Pagename — creating a new page
- ng g s ServiceName — creating a service page
- ng g class NameOftheModel –type=model /*creating a model class*/
How to remove duplicate characters from a string? || Coding Challenge
// How to remove duplicate characters from a string?
static void Main(string[] args)
{
string test ="aabaccdddeffa";
Console.WriteLine("remove duplicate");
string temp = "";
foreach(char cha in test)
{
if (!temp.Contains(cha))
temp += cha;
}
Console.WriteLine(temp);
}