Example #1
0
 public void WriteSerializerString(CodeWriter.CodeWriter writer)
 {
     foreach (var serializeType in _serializes)
     {
         writer.Write(serializeType.TypeString());
     }
 }
Example #2
0
        public void WriteIgnore(CodeWriter.CodeWriter writer)
        {
            var serializeType = _serializes.Find((type => type is MessagePack));

            if (serializeType != null)
            {
                writer.Write("[MessagePack.IgnoreMember]");
            }
            writer.Write("[IgnoreDataMember]");
        }
Example #3
0
 public void Generate()
 {
     generatedContent = generate();
 }
Example #4
0
 public JobTarget(string filePath, Func <string> generate)
 {
     FilePath         = filePath;
     generatedContent = null;
     this.generate    = () => CodeWriter.CodeWriter.Raw(generate());
 }
Example #5
0
 public JobTarget(string filePath, Func <CodeWriter.CodeWriter> generate)
 {
     FilePath         = filePath;
     generatedContent = null;
     this.generate    = generate;
 }