class Foo { public Foo(string name) { Contract.Requires<ArgumentNullException>(name != null, "name"); } public void Execute(ICollection<int> executedIds) { Contract.Requires<ArgumentNullException>(executedIds != null, "executedIds"); } } class Bar { public static void Execute() { var foo = new Foo("foo"); foo.Execute(new Collection<int>()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)