RenderingLibrary.Graphics.NineSlice.GetIfShouldUsePattern C# (CSharp) Method

GetIfShouldUsePattern() public static method

public static GetIfShouldUsePattern ( string absoluteTexture ) : bool
absoluteTexture string
return bool
        public static bool GetIfShouldUsePattern(string absoluteTexture)
        {
            bool usePattern = false;

            string withoutExtension = FileManager.RemoveExtension(absoluteTexture);
            foreach (var kvp in PossibleNineSliceEndings)
            {
                if (withoutExtension.EndsWith(kvp, StringComparison.OrdinalIgnoreCase))
                {
                    usePattern = true;
                    break;
                }
            }
            return usePattern;
        }