コード例 #1
0
        internal IResultMapper <Result>?GetResultMapper(int requestCode)
        {
            IResultMapper <Result>?resultMapper   = null;
            var resultMapperAssemblyQualifiedName = _state?.GetString(null, requestCode.ToString());

            if (!string.IsNullOrWhiteSpace(resultMapperAssemblyQualifiedName))
            {
                var resultMapperType = Type.GetType(resultMapperAssemblyQualifiedName);
                resultMapper = (IResultMapper <Result>)Activator.CreateInstance(resultMapperType);
            }

            return(resultMapper);
        }