源文件/Global.asax.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
using System.IO;
namespace Simplified2Traditional2._0 
{
	/// <summary>
	/// Global 的摘要说明。
	/// </summary>
	public class Global : System.Web.HttpApplication
	{
		public Global()
		{
			InitializeComponent();
		}	
		
		protected void Application_Start(Object sender, EventArgs e)
		{
			string strFileName=Server.MapPath("simplify.txt");
			StreamReader ReadFile;
			ReadFile=File.OpenText(strFileName);
			string txt=ReadFile.ReadLine().ToString();
			string[,] aa=new string[txt.Length/2,2];
			int j=0;

			for(int i=0;i<txt.Length/2;i++)
			{
				aa[i,0]=txt.Substring(j,1);
				j++;
				aa[i,1]=txt.Substring(j,1);
				j++;
			}
			ReadFile.Close();
			Application["simplify"]=aa;
		}
 
		protected void Session_Start(Object sender, EventArgs e)
		{

		}

		protected void Application_BeginRequest(Object sender, EventArgs e)
		{

		}

		protected void Application_EndRequest(Object sender, EventArgs e)
		{

		}

		protected void Application_AuthenticateRequest(Object sender, EventArgs e)
		{

		}

		protected void Application_Error(Object sender, EventArgs e)
		{
后面还有 25 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。