private IEventEmitter CreateEventEmitter(Emitter emitter, SerializationOptions options) { var writer = new WriterEventEmitter(emitter); if ((options & SerializationOptions.JsonCompatible) != 0) { return(new JsonEventEmitter(writer)); } else { return(new TypeAssigningEventEmitter(writer)); } }
private IEventEmitter CreateEventEmitter(Emitter emitter, SerializationOptions options) { var writer = new WriterEventEmitter(emitter); if ((options & SerializationOptions.JsonCompatible) != 0) { return new JsonEventEmitter(writer); } else { return new TypeAssigningEventEmitter(writer); } }