コード例 #1
0
        public void ReadObjectWithoutObjectInfo(SerializeData staticSerializeData, ref object value)
        {
            Type          type          = (value != null) ? value.GetType() : null;
            SerializeData serializeData = (!(type == null) && !(staticSerializeData.Type == type)) ? Archive.GetSerializeData(type, allowEmptySerializer: false) : staticSerializeData;

            if (serializeData.AutoConstructObject && value == null)
            {
                value = Activator.CreateInstance(serializeData.Type, nonPublic: true);
            }
            serializeData.Read(this, ref value);
        }