摘要:
在很多场合下, 你需要在主(UI)线程中运行一些比较耗时间的任务,比如以下的任务l Image downloadsl Web service invocationsl File downloads and uploads (including for peer-to-peer applications)l Complex local computationsl Database transactionsl Local disk access, given its slow speed relative to memory access这个时候UI就会陷入一种假死的状态,会给用户带来一种很不好的 阅读全文
摘要:
虽然4.0有了新特性。Named And Optional Arguments - 命名参数和可选参数 public partialclass NamedAndOptionalArguments : System.Web.UI.Page { protectedvoid Page_Load(object sender, EventArgs e) { Write("hello"); Write("hello","webabcd"); Write("hello", p3:false, p2:"webabcd&q 阅读全文