예제 #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));
            }
        }
예제 #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);
            }
        }