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
propertyBagIFileTypePropertyBagkeystringvalueTEnum
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
propertyBagIFileTypePropertyBagitemKeyValuePair<string, TEnum>
Type Parameters
TEnum