¡@

Home 

c# Programming Glossary: currentnode

Remove node from single linked list

http://stackoverflow.com/questions/1432818/remove-node-from-single-linked-list

Delete int rangeStart int rangeEnd Node previousNode null currentNode Head while currentNode null if currentNode.Data rangeStart currentNode.Data.. int rangeEnd Node previousNode null currentNode Head while currentNode null if currentNode.Data rangeStart currentNode.Data rangeEnd.. null currentNode Head while currentNode null if currentNode.Data rangeStart currentNode.Data rangeEnd if previousNode null..

C# How to populate TreeView with file system directory structure

http://stackoverflow.com/questions/6239544/c-sharp-how-to-populate-treeview-with-file-system-directory-structure

Tag rootDirectory stack.Push node while stack.Count 0 var currentNode stack.Pop var directoryInfo DirectoryInfo currentNode.Tag foreach.. var currentNode stack.Pop var directoryInfo DirectoryInfo currentNode.Tag foreach var directory in directoryInfo.GetDirectories var.. new TreeNode directory.Name Tag directory currentNode.Nodes.Add childDirectoryNode stack.Push childDirectoryNode ..

Any chance to get unique records using Linq (C#)?

http://stackoverflow.com/questions/724479/any-chance-to-get-unique-records-using-linq-c

TKey key keySelector element LinkedListNode TElement currentNode if nodeMap.TryGetValue key out currentNode Seen it before... TElement currentNode if nodeMap.TryGetValue key out currentNode Seen it before. Remove if non null if currentNode null results.Remove.. key out currentNode Seen it before. Remove if non null if currentNode null results.Remove currentNode nodeMap key null Otherwise..