I want to implement getter & setter property access in Dictionary like below,
int _number;
public int Number
{
get
{
return this._number;
}
set
{
this._number = value;
}
}
Please help me if there any solution to implement getter & setter to dictionary because one of the app we use static dictionary for localization and that used whole application. In get method I will check if passed key not found then it return key. Now problem is that if in dictionary key is not found then it gives exception "Key not found".
Thanks in advance!