private void UseMethodValidators() { MethodValidators.AddRange(new IValidator <MethodDefinition>[] { new FloatOpsValidator(), new ArrayValidator(), new MultiDimArrayValidator(), new UncheckedMathValidator(), }); }
private void UseMethodValidators() { MethodValidators.AddRange(new IValidator <MethodDefinition>[] { new FloatOpsValidator(), new ArrayValidator(), new MultiDimArrayValidator(), // TODO: Enable unchecked math validator once test cases are passing with overflow check // new UncheckedMathValidator(), }); }
public ThirdPolicy() { Whitelist = new Whitelist(); Whitelist.Namespace("System.Collections", Permission.Allowed); Whitelist.Namespace("System.OS", Permission.Denied); MethodValidators.AddRange(new IValidator <MethodDefinition>[] { new UncheckedMathValidator() }); }
public SecondPolicy() { Whitelist = new Whitelist(); Whitelist.Namespace("System.Linq", Permission.Allowed); Whitelist.Namespace("System.DateTime", Permission.Denied); MethodValidators.AddRange(new IValidator <MethodDefinition>[] { new MultiDimArrayValidator(), }); }
public FirstPolicy() { Whitelist = new Whitelist(); Whitelist.Namespace("System.Text", Permission.Allowed); Whitelist.Namespace("System.Random", Permission.Denied); MethodValidators.AddRange(new IValidator <MethodDefinition>[] { new ArrayValidator(), new FloatOpsValidator(), }); }