コード例 #1
0
        public Configuration RegisterConverter(IDataConverter dataConverter)
        {
            string typeString = dataConverter.GetDataType().FullName;

            converters[typeString] = dataConverter;
            return(this);
        }
コード例 #2
0
        public Configuration UnRegisterConverter(IDataConverter dataConverter)
        {
            string typeString = dataConverter.GetDataType().FullName;

            if (converters.ContainsKey(typeString))
            {
                converters.Remove(typeString);
            }
            return(this);
        }