BuildReportTool.Util.RemovePrefix C# (CSharp) Method

RemovePrefix() public static method

public static RemovePrefix ( string prefix, string val ) : string
prefix string
val string
return string
	public static string RemovePrefix(string prefix, string val)
	{
		if (val.StartsWith(prefix))
		{
			return val.Substring(prefix.Length, val.Length - prefix.Length);
		}
		return val;
	}