Table of Contents

Method TryGetValue

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

TryGetValue<T>(IReadOnlyFileTypePropertyBag, string, out T)

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<T>(this IReadOnlyFileTypePropertyBag propertyBag, string key, out T value) where T : IParsable<T>

Parameters

propertyBag IReadOnlyFileTypePropertyBag
key string
value T

Returns

bool

Type Parameters

T