SubnetNamesCollection is a type owned by Poweshell project. Consider defining a constructor which accepts a collection on it. We can get rid of the for loop below.