tags:

views:

57

answers:

2

Possible Duplicate:
C# - Disable Dynamic Keyword

We are going to introduce .NET 4.0 and I'm VERY afraid of people using dynamic in the future, thereby destroying code quality, Intellisense capability and type safety.

What would be the best way to enforce a strict non - "dynamic" - policy? Is there a way to turn off the "dynamic" - keyword in the compiler?

+1  A: 

A similar question was asked here: http://stackoverflow.com/questions/2791428/c-disable-dynamic-keyword

Adam
this is actually a comment, not an answer
chiccodoro
But it still provides information to answer the question - semantics.
Adam
A: 

Can't really disable it as it's part of C# but you could introduce a FXCop/Analysis rule to check for it and fail the build if found.

ho1