Method TryGetValue
- Namespace
- PaintDotNet.FileTypes
- Assembly
- PaintDotNet.FileTypes.dll
TryGetValue<TEnum>(IReadOnlyFileTypePropertyBag, string, out TEnum)
Attempts to retrieve a value from the property bag and parses it using the specified type. If the key does not exist, or if the parsing fails, then false is returned instead.
public static bool TryGetValue<TEnum>(this IReadOnlyFileTypePropertyBag propertyBag, string key, out TEnum value) where TEnum : struct, Enum
Parameters
propertyBagIReadOnlyFileTypePropertyBagkeystringvalueTEnum
Returns
Type Parameters
TEnum