.NET
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!
Creating a dictionary in .NET
Create a string dictionary Adding elements Reading elements
Creating a dictionary in .NET Part 1 – Create a string dictionary
Let’s create a dictionary in .NET from here. First create a new dictionary containing strings. Great! Now in the next post we’ll add some elements.
Unit testing C# with MSTest and .NET Core Part 1 – Create the source project
Writing Unit Tests is fun! So let’s follow this and write Unit Testing with MSTest. First create the folder structure for the project and inside create the solution file for the class library and the test project. Create a the new source project which is a class library and rename the Class1.cs to PrimeService.cs Go […]
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 […]
You must be logged in to post a comment.