public void Accept(DString type, TType x, List <ResourceInfo> y)
 {
     if (!string.IsNullOrEmpty(type.Value) && x.HasTag(ResTagName))
     {
         y.Add(new ResourceInfo()
         {
             Resource = type.Value, Tag = x.GetTag(ResTagName)
         });
     }
 }
        private static ExcelStream TrySep(TType type, ExcelStream stream)
        {
            string sep = type.GetTag("sep");

            if (string.IsNullOrEmpty(sep) && type.ElementType != null && type.ElementType.Apply(IsNotSepTypeVisitor.Ins))
            {
                // 如果是array,list,set,并且它们的elementType不包含',;|',则自动添加sep分割。这是一个方便策划的优化
                return(stream.CreateAutoSepStream(DataUtil.SimpleContainerSep));
            }

            if (!string.IsNullOrEmpty(sep) && !stream.TryReadEOF())
            {
                stream = new ExcelStream(stream.ReadCell(), sep);
            }
            return(stream);
        }