Exemplo n.º 1
0
 public static void SetNativeOutputParams(IServerProcess process, NativeParam[] nativeParams, DataParams dataParams)
 {
     if (nativeParams != null)
     {
         for (int index = 0; index < nativeParams.Length; index++)
         {
             NativeParam nativeParam = nativeParams[index];
             if ((nativeParam.Modifier == NativeModifier.Var) || (nativeParam.Modifier == NativeModifier.Out))
             {
                 nativeParam.Value = DataParamToNativeValue(process, dataParams[index]);
             }
         }
     }
 }
Exemplo n.º 2
0
 public static NativeParam[] DataParamsToNativeParams(IServerProcess process, DataParams dataParams)
 {
     NativeParam[] nativeParams = new NativeParam[dataParams.Count];
     for (int index = 0; index < dataParams.Count; index++)
     {
         var dataParam   = dataParams[index];
         var nativeValue = DataParamToNativeValue(process, dataParam);
         nativeParams[index] =
             new NativeParam()
         {
             Name     = dataParam.Name,
             Modifier = NativeCLIUtility.ModifierToNativeModifier(dataParam.Modifier),
             Value    = nativeValue
         };
     }
     return(nativeParams);
 }