예제 #1
0
 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);
 }
예제 #2
0
 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);
 }