typedeclarations.cs

来自「xpdl的c#解析器 完全依照xpdl标准」· CS 代码 · 共 35 行

CS
35
字号
using System;
using System.Collections;
using Nucleus.Common.Util;

namespace com.use.wfp.xpdl.elements
{
	/// <summary>
	/// TypeDeclarations 的摘要说明。
	/// </summary>
	public class TypeDeclarations:BaseElement
	{
		public TypeDeclaration GetTypeDeclarationById(String Id)
		{
			if(null == apps)
			{
				GetTypeDeclarations();
			}
			foreach(TypeDeclaration app in apps)
			{
				if(app.GetId().Equals(Id))
				{
					return app;
				}
			}
			throw new ObjectNotFound("TypeDeclaration Not Found! Id=" +Id);
		}

		private IList apps;
		public IList GetTypeDeclarations()
		{
			return GetChildren(apps, out apps, typeof(TypeDeclaration), "TypeDeclaration");
		}
	}
}

⌨️ 快捷键说明

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