Esempio n. 1
0
        protected virtual void PopulateObjectMembers(object @object,
                                                     ObjectData data, ObjectDataConvertSettings settings, ObjectDataConvertSession session)
        {
            var type = @object.GetType();

            foreach (var member in data.Members)
            {
                var am    = AssignableMember.Get(type, member.Key, BindingAttributes.Instance);
                var value = Data.ToObject(member.Value, settings, session);
                am.SetValue(@object, value);
            }
        }