コード例 #1
0
ファイル: Serializer.cs プロジェクト: imgen/YamlDotNet
        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
ファイル: Serializer.cs プロジェクト: bennidhamma/YamlDotNet
        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);
            }
        }