System.Web.Compilation.TemplateControlCompiler.TrimDB C# (CSharp) Method

TrimDB() private method

private TrimDB ( string value, bool trimTail ) : string
value string
trimTail bool
return string
		string TrimDB (string value, bool trimTail)
		{
			string str = value.Trim ();
			int len = str.Length;
			int idx = str.IndexOf ('#', 2) + 1;
			if (idx >= len)
				return String.Empty;
			if (trimTail)
				len -= 2;
			
			return str.Substring (idx, len - idx).Trim ();
		}
TemplateControlCompiler