MonoDevelop.Projects.Formats.MSBuild.MSBuildItemGroupCollection.CountNewLines C# (CSharp) Method

CountNewLines() public method

public CountNewLines ( string nl, string text ) : int
nl string
text string
return int
		public int CountNewLines(string nl, string text)
		{
			int i = -1;
			int c = -1;
			do
			{
				c++;
				i++;
				i = text.IndexOf(nl, i);
			}
			while (i != -1);
			return c;
		}