private void AddToDictionary (XamlObjectElement obj, object value)
{
IDictionary rd = prop.GetValue (target, null) as IDictionary;
if (rd == null)
throw Parser.ParseException ("Collection property in non collection type.");
rd.Add (obj.X_Key, value);
}
}