惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - 一九零零

python 中文乱码解决 用户中心 - 博客园 Windows Nginx 下启动关闭的管理批处理脚本 window nginx 多站点(虚拟主机)配置 解决不能加载 MagicNet.dll 组件 固定长度和变长 字符串 对 默认值的处理 C#写COM组件提供ASP使用(转) - 一九零零 - 博客园 如何使用FindControl查找内容页上的某个控件? - 一九零零 - 博客园 jQuery.Validate 使用笔记 整理和收集一些 AspNetPager 分页样式,比较美观 排序 SELECT INTO 生成的表 默认的一个排序序号字段是,自增长标识列 Win 2003 系统下,发布 Asp.Net Ajax 带来的环境问题 数据库备份打包工具 Asp.NET 网站程序,在 IIS6.0 部署时出现的环境问题集? 发布一款实体代码生成器 V3.0 格式相对美观 网页效果方面的建议 有关 VS 2008 Toolbox 载入控件重复的解决办法! @@IDENTITY,SCOPE_IDENTITY和IDENT_CURRENT的辨析 IE中打开UTF-8编码title为中文的网页会显示空白页的问题
HttpRuntime.Cache[""] 泛型强制转换时 值类型的错误
一九零零 · 2012-06-27 · via 博客园 - 一九零零

HttpRuntime.Cache[""]

直接返回的是 空值 当不存在键值时,如果 做强制值类型转换时,会引起 对象引用不存在的错误

引用类型不会,但是 对集合类型 直接做转换时 也存在问题

应该是先取对象,判断是否为空,然后 再进行 强制转换