⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calculate.cs

📁 应用AOP
💻 CS
字号:
//
// Write by Peopleyl 2007-04-13
//
#if UNuit
using System;
using System.Data;
using System.Threading;
using Aspect.AopBase;
using Aspect.Exception;

namespace Aspect.Test
{
	[ExceptionAttribute]
	public class Calculate : AspectObject
	{	
		[ExceptionAttribute("I Love You")]
		public string CalculateLog(int a)
		{	
			//Thread.Sleep(5000);
			return Convert.ToString(checked(a*a));
		}
		
		public object CalculateLog(int a,int b)
		{	
			//Thread.Sleep(5000);
			return checked(a / b);
		}

		[ExceptionAttribute(123456789)]
		public int CalculateLog(int a,int b,int c)
		{	
			//Thread.Sleep(5000);
			return checked(a+b+c);
		}

		public DataSet TestForDataSet(string tableName)
		{	
			//Thread.Sleep(5000);
			DataSet ds = new DataSet(tableName);
			return ds;
		}
	}
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -