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" );
        }