/// <inheritdoc/> public override bool Match(PathSegment other) { KeySegment otherKeySegment = other as KeySegment; if (otherKeySegment == null) { return(false); } // Compare the key segment using It's declaring type. return(DeclaringType.FullTypeName() == otherKeySegment.DeclaringType.FullTypeName()); }