BuildReportTool.Util.ReplaceFileType C# (CSharp) Method

ReplaceFileType() public static method

public static ReplaceFileType ( string filename, string newFileType ) : string
filename string
newFileType string
return string
	public static string ReplaceFileType(string filename, string newFileType)
	{
		string newFile = filename.Remove(filename.LastIndexOf("."));

		newFile += newFileType;

		return newFile;
	}