Beispiel #1
0
        public void RegisterTypeReader(ITypeReader typeReader)
        {
            Type type = typeReader.GetRedableType();

            if (this.typeReaders.ContainsKey(type))
            {
                throw new ArgumentException(string.Format("A type reader is already registered for the type {0}", type));
            }

            this.typeReaders.Add(type, typeReader);
        }