Closed romaneo closed 3 years ago
Using the technique we talked about on the last call create a custom implementation of the Dictionary structure.
Programm requirements:
add
pair
Key
value
validation
remove
Programm recommendation:
Learning materials:
https://metanit.com/sharp/tutorial/3.36.php - Operators override https://app.pluralsight.com/library/courses/csharp-equality-comparisons/table-of-contents
Please rename Class1 and Class2 according to the class names inside. After that, merge the branch and close the issue.
Class1
Class2
Using the technique we talked about on the last call create a custom implementation of the Dictionary structure.
Programm requirements:
add
newpair
ofKey
```Value``` (myDictionary.Add("someKey", "someValue"))value
by Key (myDictionary.Get("someKey"))validation
if key already present in the dictionary (myDictionary.IsExist("someKey"))remove
existing pair byKey
(myDictionary.Remove("someKey"))Programm recommendation:
Learning materials:
Hint spoiler
You can implement both ```dictionary``` and ```pair``` as separate classes\
\
\
CODE SPOILER HINT (OPEN IN CASE OF CRITICAL NEED)
https://pastebin.com/1LrBN6rc