BitmapSaverWindow.CheckFileType C# (CSharp) Method

CheckFileType() private method

private CheckFileType ( string file ) : bool
file string
return bool
    private bool CheckFileType( string file)
    {
        string _typ = Path.GetExtension( file );

        //BMP; GIF; PSD; PNG; JPG; TGA; TIFF; IFF; PICT;

        if( _typ == ".bmp" ||  _typ == ".BMP" ) return true;
        if( _typ == ".gif" ||  _typ == ".GIF" ) return true;
        if( _typ == ".psd" ||  _typ == ".PSD" ) return true;
        if( _typ == ".png" ||  _typ == ".PNG" ) return true;
        if( _typ == ".jpg" ||  _typ == ".JPG" ) return true;

        if( _typ == ".tga" ||  _typ == ".TGA" ) return true;
        if( _typ == ".tif" ||  _typ == ".TIF" ) return true;
        if( _typ == ".iff" ||  _typ == ".IFF" ) return true;
        if( _typ == ".pict"||  _typ == ".PICT") return true;

        return false;
    }