Generates serialization methods for various objects.
Пример #1
0
 public override void GenerateReadCalls(SerializerGenerator generator)
 {
     for (var i = InitialValue; i < IterationCount; ++i)
     {
         base.GenerateReadCalls(generator);
     }
 }
Пример #2
0
        public virtual void GenerateReadCalls(SerializerGenerator generator)
        {
            foreach (var node in Children)
            {
                if (node.TypeToken != null)
                {
                    var reader = generator.GenerateExpressionReader(node.TypeToken, node.MemberToken);
                    if (reader != null)
                    {
                        node.ReadExpression.Add(reader);
                    }
                }

                node.GenerateReadCalls(generator);
            }
        }