BuildingCoder.CmdRemoveImportedJpgs.ElementNameMayIndicateImageFileReference C# (CSharp) Method

ElementNameMayIndicateImageFileReference() private method

Return true if the given element name seems to indicate an image file refrerence, i.e. ends in ".jpg", ".jpeg", or ".bmp". This is of course still no guarantee, a user may create elements named like this just to shoot herself in her foot, so beware!
private ElementNameMayIndicateImageFileReference ( Element e ) : bool
e Element
return bool
        bool ElementNameMayIndicateImageFileReference( 
            Element e)
        {
            string s = e.Name.ToLower();

              return s.EndsWith( ".jpg" )
            || s.EndsWith( ".jpeg" )
            || s.EndsWith( ".bmp" );
        }