protected bool AreFilenamesSame(string sParm1, string sParm2) { if (sParm1 == null || sParm2 == null) { return false; } return (sParm1.ToLowerInvariant() == sParm2.ToLowerInvariant()) ? true : false; }