private bool PluginStringCheck(FileInfo Info) { string Generical; Generical = Info.FullName.ToUpperInvariant(); if (Generical.EndsWith(".DLL", StringComparison.InvariantCultureIgnoreCase)) { return(true); } return(false); }
/// <summary> /// Intendded forr derived classes. This tests if the target exists, and ends with ".DLL" and is not a directory /// </summary> /// <param name="Info"></param> /// <returns>true if the target exists and ends with .DLL and is not a directory</returns> public bool FilePluginCheckSimple(FileInfo Info) { string Generical; if (Info != null) { Generical = Info.FullName.ToUpperInvariant(); if (File.Exists(Generical) == false) { return(false); } if (Info.Attributes.HasFlag(FileAttributes.Directory)) { return(false); } if (Generical.EndsWith(".DLL", StringComparison.InvariantCultureIgnoreCase)) { return(true); } } return(false); }