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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The GitHub Blog
The GitHub Blog
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
腾讯CDC
博客园 - 聂微东
The Cloudflare Blog
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
Last Week in AI
Last Week in AI
B
Blog

博客园 - 融化了的朱古力

AJAX Automated Testing Object design Professional asp.net 2.0 server control and component development Online dictionary ASP.NET 2.0服务器控件与组件开发高级编程 .NET组件程序设计 .NET组件程序设计0723 .NET组件程序设计0721 .NET组件程序设计 never draw to an inside straight Per say Agile Principles, Patterns, and Practices in C# MapControl MapPoint Helpful Links 20060827 20060812 what is locality of reference? 20060806 20060802
Professional asp.net 2.0 Server Control and Component Dev...
融化了的朱古力 · 2007-08-29 · via 博客园 - 融化了的朱古力

P60

public override void Reset()
{
    
base.Reset();
    
if (IsEmpty)
        
return;
    
if (IsSet(“BackImageRepeat”))
        ViewState.Remove(“BackImageRepeat”);
}

可否这样写呢?

public override void Reset()
{
    
if (IsEmpty)
        
return;
    
base.Reset();
    
if (IsSet(“BackImageRepeat”))
        ViewState.Remove(“BackImageRepeat”);
}

P61

public override void MergeWith(Style s)
{
    
if (s == null)
        
return;
    
if (IsEmpty)
    
{
        CopyFrom(s);
        
return;
    }

    CustomTableStyle cs 
= s as CustomTableStyle;
    
if (cs == null || cs.IsEmpty)
        
return;
    
if (cs.IsSet(“BackImageRepeat”) && !IsSet(“BackImageRepeat”))
        
this.BackImageRepeat = cs.BackImageRepeat;
}

为何不需调用基类的MergeWith?