Thread-ParameterizedThreadStart
namespace System.Threading { using System.Security.Permissions; using System.Threading; using System.Runtime.InteropServices; [ComVisibleAttribute(false)] public delegate void ParameterizedThreadStart(object obj); }
这个也是一个委托,在实例化Thread时传入,有参数。下面这个方法是SetStart
[System.Security.SecuritySafeCritical] // auto-generated public Thread(ParameterizedThreadStart start) { if (start == null) { throw new ArgumentNullException("start"); } Contract.EndContractBlock(); SetStartHelper((Delegate)start, 0); } [System.Security.SecuritySafeCritical] // auto-generated public Thread(ParameterizedThreadStart start, int maxStackSize) { if (start == null) { throw new ArgumentNullException("start"); } if (0 > maxStackSize) throw new ArgumentOutOfRangeException("maxStackSize",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); Contract.EndContractBlock(); SetStartHelper((Delegate)start, maxStackSize); }