From 043f8e2d88c8c85307acfa6e068497c32f27b824 Mon Sep 17 00:00:00 2001 From: oneRain Date: Tue, 26 Nov 2019 17:35:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E8=BF=AD=E4=BB=A3?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Storage/Storage/Public/AVObject.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Storage/Storage/Public/AVObject.cs b/Storage/Storage/Public/AVObject.cs index be4f90d..b82794b 100644 --- a/Storage/Storage/Public/AVObject.cs +++ b/Storage/Storage/Public/AVObject.cs @@ -592,10 +592,7 @@ string propertyName var current = (from item in remaining where item.CanBeSerialized select item).ToList(); - var nextBatch = (from item in remaining - where !item.CanBeSerialized - select item).ToList(); - remaining = nextBatch; + remaining = remaining.Except(current).ToList(); if (current.Count == 0) { // We do cycle-detection when building the list of objects passed to this