FastQuant.StreamerManager.Add C# (CSharp) Méthode

Add() public méthode

public Add ( ObjectStreamer streamer ) : void
streamer ObjectStreamer
Résultat void
        public void Add(ObjectStreamer streamer)
        {
            var s = this.streamsById[streamer.typeId];
            if (s != null && s.type != streamer.type)
                throw new Exception($"StreamerManager::Add Streamer with the same typeId but different type is already registered in the StreamerManager {s.typeId} {s.type}");

            streamer.streamerManager = this;
            this.streamsById[streamer.typeId] = streamer;
            this.streamsByType[streamer.type] = streamer;
        }