Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# one dimensional dictionary

// constant searching similar to dictionary but not in key/value pair
// NOTE: value represents the key itself, you can't store equal values
HashSet<T> constantSearch = new HashSet<T>();
var getValue = constantSearch[value as key];

// example
var usedNumbers = new HashSet<int>();
usedNumbers.Constains(number);
//
var registeredUsers = new HashSet<string>();
registeredUsers.Constains(userName);
 
PREVIOUS NEXT
Tagged: #dimensional #dictionary
ADD COMMENT
Topic
Name
4+3 =