(object obj)
| 63 | } |
| 64 | |
| 65 | public int Add(object obj) |
| 66 | { |
| 67 | int index = LIST_END; |
| 68 | |
| 69 | if (freelist != LIST_END) |
| 70 | { |
| 71 | index = freelist; |
| 72 | list[index].obj = obj; |
| 73 | freelist = list[index].next; |
| 74 | list[index].next = ALLOCED; |
| 75 | } |
| 76 | else |
| 77 | { |
| 78 | if (count == list.Length) |
| 79 | { |
| 80 | extend_capacity(); |
| 81 | } |
| 82 | index = count; |
| 83 | list[index] = new Slot(ALLOCED, obj); |
| 84 | count = index + 1; |
| 85 | } |
| 86 | |
| 87 | return index; |
| 88 | } |
| 89 | |
| 90 | public bool TryGetValue(int index, out object obj) |
| 91 | { |
no outgoing calls
no test coverage detected