BuildingCoder.CmdRemoveImportedJpgs.ElementNameMayIndicateImageFileReference C# (CSharp) Метод

ElementNameMayIndicateImageFileReference() приватный Метод

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
Результат bool
        bool ElementNameMayIndicateImageFileReference( 
            Element e)
        {
            string s = e.Name.ToLower();

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