public void FillObject()
        {
            FieldDefinition definitionWithId;

            if (this.ObjectLoadData.TypeDefinition == null || (definitionWithId = this.ObjectLoadData.TypeDefinition.GetFieldDefinitionWithId(this.MemberSaveId)) == null)
            {
                return;
            }
            this._fieldInfo = definitionWithId.FieldInfo;
            object target    = this.ObjectLoadData.Target;
            object dataToUse = this.GetDataToUse();

            if (dataToUse != null && !this._fieldInfo.FieldType.IsAssignableFrom(dataToUse.GetType()) && !LoadContext.TryConvertType(dataToUse.GetType(), this._fieldInfo.FieldType, ref dataToUse))
            {
                return;
            }
            this._fieldInfo.SetValue(target, dataToUse);
        }
        public void FillObject()
        {
            PropertyDefinition definitionWithId;

            if (this.ObjectLoadData.TypeDefinition == null || (definitionWithId = this.ObjectLoadData.TypeDefinition.GetPropertyDefinitionWithId(this.MemberSaveId)) == null)
            {
                return;
            }
            MethodInfo setMethod = definitionWithId.SetMethod;
            object     target    = this.ObjectLoadData.Target;
            object     dataToUse = this.GetDataToUse();

            if (dataToUse != null && !definitionWithId.PropertyInfo.PropertyType.IsAssignableFrom(dataToUse.GetType()) && !LoadContext.TryConvertType(dataToUse.GetType(), definitionWithId.PropertyInfo.PropertyType, ref dataToUse))
            {
                return;
            }
            setMethod.Invoke(target, new object[1] {
                dataToUse
            });
        }