Microsoft.DocAsCode.GlobUtility.GetMatchOptionsFromItem C# (CSharp) Method

GetMatchOptionsFromItem() private static method

private static GetMatchOptionsFromItem ( Microsoft.DocAsCode.FileMappingItem item ) : GlobMatcherOptions
item Microsoft.DocAsCode.FileMappingItem
return GlobMatcherOptions
        private static GlobMatcherOptions GetMatchOptionsFromItem(FileMappingItem item)
        {
            GlobMatcherOptions options = item?.CaseSensitive ?? false ? GlobMatcherOptions.None : GlobMatcherOptions.IgnoreCase;
            if (item?.AllowDotMatch ?? false) options |= GlobMatcherOptions.AllowDotMatch;
            if (!(item?.DisableEscape ?? false)) options |= GlobMatcherOptions.AllowEscape;
            if (!(item?.DisableExpand ?? false)) options |= GlobMatcherOptions.AllowExpand;
            if (!(item?.DisableGlobStar ?? false)) options |= GlobMatcherOptions.AllowGlobStar;
            if (!(item?.DisableNegate ?? false)) options |= GlobMatcherOptions.AllowNegate;
            return options;
        }