Conquer COVID-19/Library/PackageCache/com.unity.quicksearch@2.1.0-preview.4/Editor/SearchService.cs
/// <summary>
/// Load a search expression asset.
/// </summary>
/// <param name="expressionPath">Asset path of the search expression</param>
/// <param name="options">Options defining how the query will be performed</param>
/// <returns>Returns a SearchExpression ready to be evaluated.</returns>
Load a search expression asset.
Load a search expression asset .
public static ISearchExpression LoadExpression(string expressionPath, SearchFlags options = SearchFlags.Default)
        {
            if (!File.Exists(expressionPath))
                throw new ArgumentException($"Cannot find expression {expressionPath}", nameof(expressionPath));
            var se = new SearchExpression(options);
            se.Load(expressionPath);
            return se;
        }
public static ISearchExpression LoadExpression ( string expressionPath , SearchFlags options = SearchFlags . Default ) { if ( ! File . Exists ( expressionPath ) ) throw new ArgumentException ( $" Cannot find expression  { expressionPath } " , nameof ( expressionPath ) ) ; var se = new SearchExpression ( options ) ; se . Load ( expressionPath ) ; return se ; }
Load a search expression asset.
Load a search expression asset .
Returns a SearchExpression ready to be evaluated.
Returns a SearchExpression ready to be evaluated .
expressionPath
string
Asset path of the search expression
Asset path of the search expression
options
SearchFlags
Options defining how the query will be performed
Options defining how the query will be performed