public bool WillAssist(MediaFile file) { string extension = Path.GetExtension(file.FileName); if (extension.StartsWith(".")) { extension = extension.Substring(1); } if (GrouperQuickTimeFileRegistration.IsQTAudioExtension(extension) || GrouperQuickTimeFileRegistration.IsQTVideoExtension(extension)) { return(true); } return(false); }
public bool WillAssist(MediaFile file) { if (file == null) { throw new ArgumentNullException("file"); } string extension = Path.GetExtension(file.FileName); if (extension.StartsWith(".")) { extension = extension.Substring(1); } if (GrouperQuickTimeFileRegistration.IsQTAudioExtension(extension) || GrouperQuickTimeFileRegistration.IsQTVideoExtension(extension)) { return(true); } return(false); }