Table of Contents

Method SetItem

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

SetItem<T>(IFileTypePropertyBag, string, in T)

Sets the specified key and value in the property bag. The value is converted to a string using its ToString() method. If the key already exists in the property bag then it is overwritten.

public static void SetItem<T>(this IFileTypePropertyBag propertyBag, string key, in T value) where T : IParsable<T>

Parameters

propertyBag IFileTypePropertyBag
key string
value T

Type Parameters

T

SetItem<T>(IFileTypePropertyBag, KeyValuePair<string, T>)

Sets the specified key and value in the property bag. The value is converted to a string using its ToString() method. If the key already exists in the property bag then it is overwritten.

public static void SetItem<T>(this IFileTypePropertyBag propertyBag, KeyValuePair<string, T> item) where T : IParsable<T>

Parameters

propertyBag IFileTypePropertyBag
item KeyValuePair<string, T>

Type Parameters

T