public CodeExpression GetWriterExpression(CodeExpression writer, CodeExpression obj) { return(CodeGen.CallMethod(obj, "ToStream", writer, CodeGen.CallMethod(CodeGen.GetThis(), "CS"), CodeGen.GetLogger())); }
public virtual CodeExpression GetReaderExpression(CodeExpression reader) { return(CodeGen.CreateObject(new CodeTypeReference(BaseType.Name), reader, CodeGen.CallMethod(CodeGen.GetThis(), "CS"), CodeGen.GetLogger())); }