C# Class KNFoundation.KNKVC.KNDictionaryKVC

IDictionary specific KVC features.
显示文件 Open project: bt-browser/KNFoundation

Public Methods

Method Description
SetValueForKey ( this o, Object value, String key ) : void

Adds the given value for the given key in the dictionary. If the key doesn't exist, it will be added. If it does, the existing value will be replaced.

ValueForKey ( this o, String key ) : Object

Gets the value for the given key in the dictionary.

Method Details

SetValueForKey() public static method

Adds the given value for the given key in the dictionary. If the key doesn't exist, it will be added. If it does, the existing value will be replaced.
public static SetValueForKey ( this o, Object value, String key ) : void
o this The base dictionary.
value Object The value to set.
key String The key to set.
return void

ValueForKey() public static method

Gets the value for the given key in the dictionary.
public static ValueForKey ( this o, String key ) : Object
o this The base dictionary.
key String The key to retrieve.
return Object