问题描述
如题:我在网上找了一个BT种子解析类,放在了App_Code目录里面,但是调用后报错,请高手指教,谢谢usingSystem;usingSystem.IO;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem.Data.SqlClient;usingXunleiHelper;publicpartialclass_Upbt:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){stringpath=Server.MapPath("1.torrent");//种子文件TorrentFile=newTorrent(path);stringmc=File.TorrentFileInfoClass[];//解析种子内容名称Response.Write(mc);}}报错:CompilationErrorDescription:Anerroroccurredduringthecompilationofaresourcerequiredtoservicethisrequest.Pleasereviewthefollowingspecificerrordetailsandmodifyyoursourcecodeappropriately.CompilerErrorMessage:CS0443:Syntaxerror;valueexpectedSourceError:Line19:TorrentFile=newTorrent(path);Line20:Line21:stringmc=File.TorrentFileInfoClass[];//解析种子内容名称Line22:Response.Write(mc);Line23:SourceFile:d:SDVPSmagnetres1bt.csLine:21
解决方案
解决方案二:
用不着高手,只要是个懂点编程的,一眼就能看出来这是什么语法?
解决方案三:
CompilationError编译错误,stringmc=File.TorrentFileInfoClass[]这是什么东西?string变量等于数组?
解决方案四:
我是菜鸟,类文件在http://blog.csdn.net/zgke/article/details/2868282这里,怎么使用帮我写个例子谢谢