Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Coding style enhancements. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | delegateFunction |
Files: | files | file ages | folders |
SHA1: |
0ebe466b2a9c49e7724a99a73f953de3 |
User & Date: | mistachkin 2015-08-05 00:55:59.509 |
Context
2015-08-05
| ||
00:57 | Work in progress on tests. Not yet working. check-in: 56469328f7 user: mistachkin tags: delegateFunction | |
00:55 | Coding style enhancements. check-in: 0ebe466b2a user: mistachkin tags: delegateFunction | |
2015-08-04
| ||
22:54 | Experimental changes to support implementing a SQLiteFunction using a generic delegate. check-in: d1cfa62cb0 user: mistachkin tags: delegateFunction | |
Changes
Changes to System.Data.SQLite/SQLiteFunction.cs.
︙ | ︙ | |||
1160 1161 1162 1163 1164 1165 1166 | protected virtual object[] GetInvokeArgs( object[] args ) /* CANNOT RETURN NULL */ { if (args == null) return new object[] { "Invoke" }; | > | | | 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 | protected virtual object[] GetInvokeArgs( object[] args ) /* CANNOT RETURN NULL */ { if (args == null) return new object[] { "Invoke" }; int length = args.Length; object[] newArgs = new object[length + 1]; newArgs[0] = "Invoke"; for (int index = 0; index < length; index++) newArgs[index + 1] = args[index]; return newArgs; } ///////////////////////////////////////////////////////////////////////// |
︙ | ︙ | |||
1197 1198 1199 1200 1201 1202 1203 | /// </returns> protected virtual object[] GetStepArgs( object[] args, int stepNumber, object contextData ) /* CANNOT RETURN NULL */ { | | | > | | 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 | /// </returns> protected virtual object[] GetStepArgs( object[] args, int stepNumber, object contextData ) /* CANNOT RETURN NULL */ { int length = 0; if (args != null) length = args.Length; int newLength = length + 3; /* "Step", stepNumber, contextData */ object[] newArgs = new object[newLength]; newArgs[0] = "Step"; if (args != null) for (int index = 0; index < length; index++) newArgs[index + 1] = args[index]; newArgs[newLength - 2] = stepNumber; newArgs[newLength - 1] = contextData; return newArgs; } |
︙ | ︙ |