Microsoft.CodeAnalysis.Sarif.Extensions.PropertyValue C# (CSharp) Method

PropertyValue() static private method

Retrieves a property value if it exists, or null.
static private PropertyValue ( string>.this properties, string key ) : string
properties string>.this A properties object from which the property shall be /// retrieved, or null.
key string The property name / key.
return string
        internal static string PropertyValue(this Dictionary<string, string> properties, string key)
        {
            string propValue;

            if (properties != null &&
                properties.TryGetValue(key, out propValue))
            {
                return propValue;
            }

            return null;
        }