解决方法
是的,它与.NET 4.0中的Tuple非常相似,但特别是可以追溯到.NET 1.0和ASP.NET 1.0.它主要用于
ViewState serialization:
The Page class contains a
SavePageViewState()
,which is invoked during the page life cycle’s save view state stage. TheSavePageViewState()
method starts by creating aTriplet
that contains the following three items:
- The page’s hash code. This hash code is used to ensure that the view state hasn’t been #tampered with between postbacks. We’ll talk more about view state hashing in the “View State and Security Implications” section.
- The collective view state of the
Page
‘s control hierarchy.- An
ArrayList
of controls in the control hierarchy that need to be explicitly invoked by the page class during the raise postback event stage of the life cycle.
还有它的’弟弟叫Pair
.
绝对没有理由你甚至不应该为这些课程烦恼,否则就会产生一种不圣洁的乱七八糟的混乱局面.
原文地址:https://www.jb51.cc/csharp/91429.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。