public void WriteSerializerString(CodeWriter.CodeWriter writer) { foreach (var serializeType in _serializes) { writer.Write(serializeType.TypeString()); } }
public void WriteIgnore(CodeWriter.CodeWriter writer) { var serializeType = _serializes.Find((type => type is MessagePack)); if (serializeType != null) { writer.Write("[MessagePack.IgnoreMember]"); } writer.Write("[IgnoreDataMember]"); }
public void Generate() { generatedContent = generate(); }
public JobTarget(string filePath, Func <string> generate) { FilePath = filePath; generatedContent = null; this.generate = () => CodeWriter.CodeWriter.Raw(generate()); }
public JobTarget(string filePath, Func <CodeWriter.CodeWriter> generate) { FilePath = filePath; generatedContent = null; this.generate = generate; }