| 以下內容為程序代碼: unsafeihtmldocument2parse(strings) { ihtmldocument2pdocument=newhtmldocumentclass(); if(pdocument!=null) { ipersiststreaminitppersist=pdocumentasipersiststreaminit; ppersist.initnew(); ppersist=null; imarkupservicesms=pdocumentasimarkupservices; if(ms!=null) { imarkupcontainerpmc=null; imarkuppointerpstart,pend; ms.createmarkuppointer(outpstart); ms.createmarkuppointer(outpend); stringbuildersb=newstringbuilder(s); intptrpsource=marshal.stringtohglobaluni(s); ms.parsestring(ref*(ushort*)psource.topointer(),0,outpmc,pstart,pend); if(pmc!=null) { marshal.release(psource); returnpmcasihtmldocument2; } marshal.release(psource); } } returnnull; } |