Pass in only strings and ints in C#?
<p>I have a function like the below. I ran into a problem were i accidentally passes in enums when i wanted the value. Same problem would occur if i passed in structs or classes.</p>

<p>Is there a way i can pass call the func and only have strings and ints as my arguments? </p>

<pre><code>static public string Func(string fmt, params object[] args)
</code></pre>
