|
static int | IndexOf (this List< Dictionary< string, string > > list, string id) |
|
static string | GetNextID (this List< Dictionary< string, string > > list, string currentId, int a) |
|
Definition at line 3 of file ExcelDataListExtension.cs.
◆ GetNextID()
static string ExcelDataListExtension.GetNextID |
( |
this List< Dictionary< string, string > > |
list, |
|
|
string |
currentId, |
|
|
int |
a |
|
) |
| |
|
inlinestatic |
Definition at line 17 of file ExcelDataListExtension.cs.
18 {
19 int num = list.IndexOf(currentId) + a;
20 if (num >= list.Count)
21 {
22 num = 0;
23 }
24 if (num < 0)
25 {
26 num = list.Count - 1;
27 }
28 return list[num]["id"];
29 }
◆ IndexOf()
static int ExcelDataListExtension.IndexOf |
( |
this List< Dictionary< string, string > > |
list, |
|
|
string |
id |
|
) |
| |
|
inlinestatic |
Definition at line 5 of file ExcelDataListExtension.cs.
6 {
7 for (int i = 0; i < list.Count; i++)
8 {
9 if (list[i]["id"] == id)
10 {
11 return i;
12 }
13 }
14 return -1;
15 }
The documentation for this class was generated from the following file: