In class/Microsoft.Build.Tasks:
[mcs.git] / tests / test-anon-64.cs
blob8035749d335355064784a74e3db183f8eae066a4
1 using System;
3 class Source {
4 public event EventHandler ChildSourceAdded;
5 public event EventHandler ChildSourceRemoved;
7 Source FindSource (Source x){ return null; }
9 private void AddSource(Source source, int position, object parent)
11 if(!FindSource(source).Equals(source)) {
12 return;
15 object iter = null;
17 source.ChildSourceAdded += delegate(object t, EventArgs e) {
18 AddSource((Source)(object)e, position, iter);
21 source.ChildSourceRemoved += delegate(object t, EventArgs e) {
25 static void Main () {}