Is it somehow possible to send a function to another function for it to run. For instance...I want to have an attribute on a field where I can specify a method that will be sent to another method where the method passed in will be run.
Not sure if that makes any sense but here's a small example.
[ValidateIf(x=>x.test())]
public string test { get; set; }
Update: Basically I want to use DataAnnotations for validation but sometimes depending on the system settings a field may not be mandatory...Do you have any suggestions on the direction I should head?