Esempio n. 1
0
        internal object ConvertBackWithConverter(
            CBORObject cbor,
            Type type)
        {
            ConverterInfo convinfo = null;

            if (this.converters.ContainsKey(type))
            {
                convinfo = this.converters[type];
            }
            else
            {
                return(null);
            }
            if (convinfo == null)
            {
                return(null);
            }
            return((convinfo.FromObject == null) ? null :
                   PropertyMap.CallFromObject(convinfo, cbor));
        }