System.Data.SQLite
Check-in [b33115baa1]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove incorrect comments.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | delegateFunction
Files: files | file ages | folders
SHA1: b33115baa15d2895536f2ca7425e457673f70451
User & Date: mistachkin 2015-08-15 04:04:09
Context
2015-08-15
17:12
Merge updates from trunk. check-in: d1fe039ff7 user: mistachkin tags: delegateFunction
04:04
Remove incorrect comments. check-in: b33115baa1 user: mistachkin tags: delegateFunction
03:48
Refactor SQLiteDelegateFunction constructor to accept two delegates, not one. Use early-bound delegates by default. Get tests passing. check-in: 3c25655a66 user: mistachkin tags: delegateFunction
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/SQLiteFunction.cs.

  1273   1273         /// </param>
  1274   1274         /// <returns>
  1275   1275         /// The arguments to pass to the configured <see cref="Delegate" />.
  1276   1276         /// </returns>
  1277   1277         protected virtual object[] GetInvokeArgs(
  1278   1278             object[] args,
  1279   1279             bool earlyBound
  1280         -          ) /* CANNOT RETURN NULL */
         1280  +          )
  1281   1281         {
  1282   1282             object[] newArgs = new object[] { "Invoke", args };
  1283   1283   
  1284   1284             if (!earlyBound)
  1285   1285                 newArgs = new object[] { newArgs }; // WRAP
  1286   1286   
  1287   1287             return newArgs;
................................................................................
  1313   1313         /// The arguments to pass to the configured <see cref="Delegate" />.
  1314   1314         /// </returns>
  1315   1315         protected virtual object[] GetStepArgs(
  1316   1316             object[] args,
  1317   1317             int stepNumber,
  1318   1318             object contextData,
  1319   1319             bool earlyBound
  1320         -          ) /* CANNOT RETURN NULL */
         1320  +          )
  1321   1321         {
  1322   1322             object[] newArgs = new object[] {
  1323   1323                 "Step", args, stepNumber, contextData
  1324   1324             };
  1325   1325   
  1326   1326             if (!earlyBound)
  1327   1327                 newArgs = new object[] { newArgs }; // WRAP
................................................................................
  1351   1351         /// <returns>
  1352   1352         /// The arguments to pass to the configured <see cref="Delegate" />.
  1353   1353         /// </returns>
  1354   1354         protected virtual void UpdateStepArgs(
  1355   1355             object[] args,
  1356   1356             ref object contextData,
  1357   1357             bool earlyBound
  1358         -          ) /* CANNOT RETURN NULL */
         1358  +          )
  1359   1359         {
  1360   1360             object[] newArgs;
  1361   1361   
  1362   1362             if (earlyBound)
  1363   1363                 newArgs = args;
  1364   1364             else
  1365   1365                 newArgs = args[0] as object[];
................................................................................
  1387   1387         /// </param>
  1388   1388         /// <returns>
  1389   1389         /// The arguments to pass to the configured <see cref="Delegate" />.
  1390   1390         /// </returns>
  1391   1391         protected virtual object[] GetFinalArgs(
  1392   1392             object contextData,
  1393   1393             bool earlyBound
  1394         -          ) /* CANNOT RETURN NULL */
         1394  +          )
  1395   1395         {
  1396   1396             object[] newArgs = new object[] { "Final", contextData };
  1397   1397   
  1398   1398             if (!earlyBound)
  1399   1399                 newArgs = new object[] { newArgs }; // WRAP
  1400   1400   
  1401   1401             return newArgs;
................................................................................
  1421   1421         /// <returns>
  1422   1422         /// The arguments to pass to the configured <see cref="Delegate" />.
  1423   1423         /// </returns>
  1424   1424         protected virtual object[] GetCompareArgs(
  1425   1425             string param1,
  1426   1426             string param2,
  1427   1427             bool earlyBound
  1428         -          ) /* CANNOT RETURN NULL */
         1428  +          )
  1429   1429         {
  1430   1430             object[] newArgs = new object[] { "Compare", param1, param2 };
  1431   1431   
  1432   1432             if (!earlyBound)
  1433   1433                 newArgs = new object[] { newArgs }; // WRAP
  1434   1434   
  1435   1435             return newArgs;