Are you sure you want to compare type instances here and not use .Equals?