Beispiel #1
0
        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));
            }
        }
Beispiel #2
0
        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);
            }
        }