private void CheckNotFinalizer(Method node) { if (node.Name == "Finalize" && !node.IsSynthetic && node.IsOverride && 0 == node.Parameters.Count && 0 == node.GenericParameters.Count) { Warnings.Add( CompilerWarningFactory.OverridingFinalizeIsBadPractice(node)); } }