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

📄 relationstestobjecta.cs

📁 基于DotNet的开源工作流引擎
💻 CS
字号:
using System;
using System.Collections;

namespace NetBpm.Test.Util.Helper
{
	/// <summary> Created to test Relations. Relation test object A
	/// 
	/// </summary>
	public class RelationsTestObjectA
	{
		private bool lazySingleReturn = true;
		private bool lazyCollectionReturn = true;
		private bool lazyArrayReturn = true;
		
		public bool LazyCollectionReturn
		{
			get {return lazyCollectionReturn;}
		}

		public bool LazySingleReturn
		{
			get {return lazySingleReturn;}
		}

		public bool LazyArrayReturn
		{
			get {return lazyArrayReturn;}
		}

		public RelationsTestObjectB SingleReturn
		{
			get {
				lazySingleReturn=false;
				return (new RelationsTestObjectB()); 
			}

		}

		public ICollection CollectionReturn
		{
			get
			{
				lazyCollectionReturn=false;
				ArrayList c = new ArrayList();
				c.Add(new RelationsTestObjectB());
				c.Add(new RelationsTestObjectC());
				c.Add(new RelationsTestObjectD());
				c.Add(new RelationsTestObjectE());
				return c;
			}

		}

		public Object[] ArrayReturn
		{
			get
			{
				lazyArrayReturn=false;
				Object[] o = new Object[] {new RelationsTestObjectB(), new RelationsTestObjectC(), new RelationsTestObjectD(), new RelationsTestObjectE()};
				return o;
			}

		}

		public RelationsTestObjectA()
		{
		}
	}
}

⌨️ 快捷键说明

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