Table of Contents

Method Add

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

Add<TEnum>(IFileTypePropertyBag, string, TEnum)

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<TEnum>(this IFileTypePropertyBag propertyBag, string key, TEnum value) where TEnum : struct, Enum

Parameters

propertyBag IFileTypePropertyBag
key string
value TEnum

Type Parameters

TEnum

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

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<TEnum>(this IFileTypePropertyBag propertyBag, KeyValuePair<string, TEnum> item) where TEnum : struct, Enum

Parameters

propertyBag IFileTypePropertyBag
item KeyValuePair<string, TEnum>

Type Parameters

TEnum