public int GetIntParameterValue(int parameter) { for (int i = 0; i < this.list.Count; i++) { PCFParameter parameter2 = (PCFParameter)this.list[i]; if (parameter2.Parameter == parameter) { if (parameter2.Type != 3) { throw new PCFException(2, 0xbc6); } return((int)parameter2.GetValue()); } } throw new PCFException(2, 0xbc6); }
public string GetStringParameterValue(int parameter) { for (int i = 0; i < this.list.Count; i++) { PCFParameter parameter2 = (PCFParameter)this.list[i]; if (parameter2.Parameter == parameter) { if (parameter2.Type != 4) { throw new PCFException(2, 0xbc7); } return((string)parameter2.GetValue()); } } throw new PCFException(2, 0xbc7); }