formalparameter.cs

来自「工作流的基本资料(文档资料」· CS 代码 · 共 50 行

CS
50
字号
using System;
using System.Collections;

namespace com.use.wfp.xpdl.elements
{
	/// <summary>
	/// FormalParameter 的摘要说明。
	/// </summary>
	public class FormalParameter:BaseElement
	{
		private BaseElement DataType;
		public DataType GetDataType()
		{
			return (DataType)GetChild( DataType, out DataType, "DataType");
		}
		private string Description;
		public string GetDescription()
		{
			return GetChildText(Description, out Description, "Description");
		}        
        
		private string Id;
		public String GetId()
		{
			return GetAttribute(Id, out Id, "Id");
		}	
        
		private string Index;
		public String GetIndex()
		{
			return GetAttribute(Index, out Index, "Index");
		}	
        
		private String mode;
		private static Hashtable modes;
		public FormalParameterMode GetFormalParameterMode(){
			return (FormalParameterMode)modes[GetAttribute(mode, out mode, "Mode", "IN")];
		}

		public FormalParameter(){
			if(modes == null){
				modes = new Hashtable();
				modes.Add("IN", FormalParameterMode.IN);
				modes.Add("OUT", FormalParameterMode.OUT);
				modes.Add("INOUT", FormalParameterMode.INOUT);
			}
		}
	}
}

⌨️ 快捷键说明

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