C#

C#

Made by DeepSource

Object is passed to a method that belongs to itself CS-W1098

Bug risk
Critical

An object was passed to a method that belongs to itself. However, the method in this case likely expects an argument that is different than the object upon which it is invoked. This is likely a typographical error and should be rectified immediately as it may alter your program's behavior.

Bad Practice

even.UnionWith(even);

Recommended

even.UnionWith(odd);