예제 #1
0
 public void SetOutputParameter <T>(OutputParameters parameterName, T parameterValue)
 {
     ExecutionContext.OutputParameters[parameterName.ToString()] = parameterValue;
 }
예제 #2
0
 public T GetOutputParameter <T>(OutputParameters parameterName)
 {
     if (_outputParameters.ContainsKey(parameterName))
     {
         return((T)_outputParameters[parameterName]);
     }
     ;
     throw new ArgumentException(string.Format("No Output parameter {0} has been set", parameterName.ToString()));
 }
예제 #3
0
 public virtual T GetOutputParameter <T>(OutputParameters parameterName)
 {
     return((T)ExecutionContext.OutputParameters[parameterName.ToString()]);
 }