Is it possible to disallow or 'hide' methods to stop the development team using them?
<p>I work in a team of 20+ developers that includes a recent influx of newer members. Our coding standards state that the .First() extension method for IEnumerable should never be used, and instead that we should always use FirstOrDefault() and check for a null return.</p>

<p>I appreciate that some members may want to get into a discussion about training, enforcing coding standards or unit tests to pick up such transgressions, but in principle is it possible to cause the attempted use to throw a compile-time error?</p>
