relationstestobjecta.cs
来自「工作流的基本资料(文档资料」· CS 代码 · 共 69 行
CS
69 行
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 + =
减小字号Ctrl + -
显示快捷键?