if __name__ == "__main__": equivalent in C#
<p>With python, I can use <code>if __name__ == "__main__":</code> for using the module both as a library and a program. </p>

<ul>
<li>Can I mimic this feature in C#? </li>
</ul>

<p>I see a class in C# can have a 'static void Main()', but I'm not sure if every class can have a Main() without a problem. </p>

<h2>ADDED</h2>

<p>/m:CLASS_NAME is a way to specify the class to run the Main().</p>
