Purpose :
Replacing code.
from simple data holder to wrapper of dictionary.
simple data holder:
After some code refactoring, all data stored in Dictionary, and data holder look like this:
To replace all values (30) data values, i use visual studio find and replace capability to use regular expression.
This is value of find:
(\w*) (\w*)\s{ (get;) (set;) }
This is value of replace.
$1 $2 { get { return dict.GetValue<$1>("$2");} set { dict.SetValue("$2",value); } }
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment