Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to iterate string in c#

//iterate over a string
using System;

public class Test
{
	public static void Main()
	{
		string iterate = "abcd";
		for(int i=0;i<iterate.Length;i++)
		{
		    Console.WriteLine(iterate[i]);
		}
	}
}
Source by www.codevscolor.com #
 
PREVIOUS NEXT
Tagged: #iterate #string
ADD COMMENT
Topic
Name
5+5 =