StackExchange.Profiling.Timing.AddKeyValue C# (CSharp) Méthode

AddKeyValue() public méthode

Adds arbitrary string 'value' under 'key', allowing custom properties to be stored in this Timing step.
public AddKeyValue ( string key, string value ) : void
key string
value string
Résultat void
        public void AddKeyValue(string key, string value)
        {
            if (KeyValues == null)
                KeyValues = new Dictionary<string, string>();

            KeyValues[key] = value;
        }

Usage Example

        internal void AddDataImpl(string key, string value)
        {
            if (Head == null)
            {
                return;
            }

            Head.AddKeyValue(key, value);
        }