How can i detect magic number?

Hi
I want to detect for magic number.
What should I do? Can you help me?
Using c#.
Thanks.

Hey there

Ensuring the rule csharpsquid:S109 (Magic numbers should not be used) is enabled in your C# Quality Profile should do the trick! This rule is not in the built-in Sonar Way Quality Profile.