本文整理汇总了C#中Chapter类的典型用法代码示例。如果您正苦于以下问题:C#Chapter类的具体用法?C#Chapter怎么用?C#Chapter使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:Page
internalPage(Chaptera_chapter,stringa_url,inta_index,ulonga_id,stringa_name,byte[]a_hash,
stringa_image_file_path,PageStatea_state):base(a_id)
{
Hash=a_hash;
ImageFilePath=a_image_file_path;
m_state=a_state;
Chapter=a_chapter;
URL=HtmlDecode(a_url);
Index=a_index;
if(State==PageState.Downloading)
m_state=PageState.Initial;
if(State==PageState.Waiting)
m_state=PageState.Initial;
if(a_name!="")
{
a_name=a_name.Trim();
a_name=a_name.Replace(" ","");
while(a_name.IndexOf("")!=-1)
a_name=a_name.Replace("","");
a_name=HtmlDecode(a_name);
Name=FileUtils.RemoveInvalidFileCharacters(a_name);
}
else
Name=Index.ToString();
}
原文链接:
http://www.jxszl.com/biancheng/C/556725.html