コード例 #1
0
        public void SetMember(MethodGenerator g, Action loadValue)
        {
            if (this.IsClassInfo)
            {
                g.AssignVariable(SerializationArgs.InstanceName, loadValue);
            }
            else
            {
                LoadOwner(g);

                if (this.IsFieldInfo)
                {
                    g.Assign(this.FieldInfo, loadValue);
                }
                else
                {
                    g.Assign(this.PropertyInfo, loadValue);
                }
            }
        }