private void AppendToAppeared(object obj, YamlNode node) { if ( obj != null && obj.GetType().IsClass && ( !( obj is string ) || ( (string)obj ).Length >= 1000 ) ) if ( !appeared.ContainsKey(obj) ) appeared.Add(obj, node); }