Calling the base constructor in C#

Modify your constructor to the following so that it calls the base class constructor properly: Note that a constructor is not something that you can call anytime within a method. That’s the reason you’re getting errors in your call in the constructor body.

.NET graph library around?

Use a combination of QuickGraph (GitHub, CodePlex) and Graph# for WPF (GitHub fork, CodePlex) – both top notch libraries. They work really well for me but the documentation for Graph# is almost non-existant.

How should I cast in VB.NET?

Those are all slightly different, and generally have an acceptable usage. var.ToString() is going to give you the string representation of an object, regardless of what type it is. Use this if var is not a string already. CStr(var) is the VB string cast operator. I’m not a VB guy, so I would suggest avoiding it, but it’s not … Read more