Table of Contents

Method Add

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

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

Adds the specified key and value to the property bag. The value is converted to a string using its ToString() method. If the key already exists in the property bag then an exception is thrown.

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

Parameters

propertyBag IFileTypePropertyBag
key string
value T

Type Parameters

T

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

Adds the specified key and value to the property bag. The value is converted to a string using its ToString() method. If the key already exists in the property bag then an exception is thrown.

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

Parameters

propertyBag IFileTypePropertyBag
item KeyValuePair<string, T>

Type Parameters

T