What would be the best way to get delegates to use the Linq Where and OrderBy "trustable" methods?
For example, if my code was passed to these types Func<T,Boolean>and Func<T>what would be the best option to check that they will work only on the object passed to them, and not, for example, such as access to the file system, etc.?
I believe one way is to have a partially trusted AppDomain on startup, and delegates work on this, but I wonder if there is another option?
thank
source
share