src/System.Management.Automation/engine/hostifaces/HostUtilities.cs
/// <summary>
/// Create suggestion with string rule and suggestion.
/// </summary>
/// <param name="id">Identifier for the suggestion.</param>
/// <param name="category">Category for the suggestion.</param>
/// <param name="matchType">Suggestion match type.</param>
/// <param name="rule">Rule to match.</param>
/// <param name="suggestion">Suggestion to return.</param>
/// <param name="enabled">True if the suggestion is enabled.</param>
/// <returns>Hashtable representing the suggestion.</returns>
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 .
Hashtable representing the suggestion.
Hashtable representing the suggestion .
id
int
Identifier for the suggestion.
Identifier for the suggestion .
category
string
Category for the suggestion.
Category for the suggestion .
matchType
SuggestionMatchType
Suggestion match type.
Suggestion match type .
rule
string
Rule to match.
Rule to match .
suggestion
string
Suggestion to return.
Suggestion to return .
enabled
bool
True if the suggestion is enabled.
True if the suggestion is enabled .