Endjin.Assembly.ChangeDetection.Infrastructure.FileQuery.GetFileNameWithOutDllExtension C# (CSharp) Method

GetFileNameWithOutDllExtension() private static method

private static GetFileNameWithOutDllExtension ( string file ) : string
file string
return string
        private static string GetFileNameWithOutDllExtension(string file)
        {
            if (file.EndsWith(".dll", StringComparison.OrdinalIgnoreCase))
            {
                return file.Substring(0, file.Length - 4);
            }
            return file;
        }