Creating a dictionary in .NET Part 3 – Reading elements

Now it’s time to read some from our dictionary. First let’s see if there’s a key you want to see. Great! Let’s enumerate the dictionary next. Awesome! Now go out and create some dictionaries!

1 min read

Define a class in C# and create two instances of the class Part 3 – Create two instances from the class

Finally let’s create two instances from the class. Inside our TestPerson class and inside the Main method instantiate the instances by using the new keyword and call the constructor you wrote with the name paramater Now it’s time to return the instances value name property to the console. And here is the complete code. Time […]

1 min read