public static object GetProperty(object target, string name) { if (!Initialized) { throw new AssertionFailedException("Initialized"); } try { return(RuntimeServices.GetProperty(target, name)); } catch (MissingMemberException) { if (target.GetType().IsValueType) { throw; } return(ExpandoServices.GetExpandoProperty(target, name)); } }
public static object SetProperty(object target, string name, object value) { if (!Initialized) { throw new NotImplementedException(); } try { throw new NotImplementedException(); //return RuntimeServices.SetProperty(target, name, value); } catch (MissingMemberException) { if (target.GetType().IsValueType) { throw; } return(ExpandoServices.SetExpandoProperty(target, name, value)); } }