Posts

Showing posts from December, 2007

anonymous delegate class object

////////////////////////////////////////////////////////// The code example below show you how to use anonymous delegate ////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; namespace YummyYummy { class Program { static void Main(string[] args) { doStuff(); } private static void doStuff() { List _list = new List (); List _subList; _list.Add(addClientInfo("AAA", "1111")); _list.Add(addClientInfo("BBB", "2222")); _list.Add(addClientInfo("CCC", "3333")); _list.Add(addClientInfo("AAA", "4444")); string _targetSearchString = "AAA"; ClientSessionEntity _client = _list.Find(delegate(ClientSessionEntity _entityA) { return _entityA.transaction