src/System.Management.Automation/engine/hostifaces/HostUtilities.cs
/// <summary>
/// Create suggestion with string rule and suggestion.
/// </summary>
Create suggestion with string rule and suggestion.
Create suggestion with string rule and suggestion .
private static Hashtable NewSuggestion(int id, string category, SuggestionMatchType matchType, string rule, string suggestion, bool enabled)
        {
            Hashtable result = new Hashtable(StringComparer.CurrentCultureIgnoreCase);
            result["Id"] = id;
            result["Category"] = category;
            result["MatchType"] = matchType;
            result["Rule"] = rule;
            result["Suggestion"] = suggestion;
            result["Enabled"] = enabled;
            return result;
        }
private static Hashtable NewSuggestion ( int id , string category , SuggestionMatchType matchType , string rule , string suggestion , bool enabled ) { Hashtable result = new Hashtable ( StringComparer . CurrentCultureIgnoreCase ) ; result [ " " ] = id ; result [ " " ] = category ; result [ " " ] = matchType ; result [ " " ] = rule ; result [ " " ] = suggestion ; result [ " " ] = enabled ; return result ; }
Create suggestion with string rule and suggestion.
Create suggestion with string rule and suggestion .
id
int
category
string
matchType
SuggestionMatchType
rule
string
suggestion
string
enabled
bool