UELib.Core.UObject.DeserializeProperties C# (CSharp) Method

DeserializeProperties() protected method

Tries to read all properties that resides in this object instance.
protected DeserializeProperties ( ) : void
return void
        protected void DeserializeProperties()
        {
            Default = this;
            _Properties = new DefaultPropertiesCollection();
            while( true )
            {
                var tag = new UDefaultProperty( Default );
                if( !tag.Deserialize() )
                {
                    break;
                }
                _Properties.Add( tag );
            }

            // We need to keep the MemoryStream alive,
            // because we first deserialize the defaultproperties but we skip the values, which we'll deserialize later on by demand.
            if( Properties.Count == 0 )
            {
                _Properties = null;
            }
        }