public object GetPreferenceObject()
 {
     return(pref.Clone <Preference>());
 }