| Sebastien 的个人资料Meta Space日志列表 | 帮助 |
|
2007/12/13 Data Access Tutorials : The Official Microsoft ASP.NET SiteData Access Tutorials : The Official Microsoft ASP.NET Site And also : And all sorts of samples from basics to advanced : here (in C#) 2007/12/3 Test CodeTags: Code C# Visual Studio 2008 using System; 2: using System.Windows.Forms; 3: using System.Collections.Generic; 4: using System.Text; 5: 6: namespace Demos.Cours232.ExoPolymorphisme 7: { 8: 9: /// <summary> 10: /// example syntax : 11: /// <![CDATA[ 12: /// AccountPlayer<SavingsAccount> savingsPlayer = new AccountPlayer<SavingsAccount>(); 13: /// ]]> 14: /// </summary> 15: /// <typeparam name="TAccount">The IAccount implementor</typeparam> 16: public class AccountPlayer<TAccount> where TAccount : IAccount, new() 17: { 18: IAccount _account; 19: Timer _timer = new Timer(); 20: int _timerInterval; 21: float _amountToWithdraw; 22: 23: long _completeMillisecondsRuntime = 0; 24: 25: public event EventHandler<EventArgs> AccountChanged; 26: 27: 28: /// <summary> 29: /// <see cref="AccountPlayer<TAccount>"/> constructor. 30: /// </summary> 31: public AccountPlayer() : this(1000,10) 32: {} 33: 34: /// <summary> 35: /// <see cref="AccountPlayer<TAccount>"/> constructor. 36: /// </summary> 37: /// <param name="milliseconds"></param> 38: public AccountPlayer(int milliseconds) : this(milliseconds,10) 39: { } 40: 41: .NET 3.0 Rules Engine - MattHow to use the new Rules Engine API that is burried deep down in WCF (but not tightly coupled, which means you can use it independently of WCF. Below is a link where you can find several samples of the rules engine :: http://wf.netfx3.com/files/folders/rules_samples/default.aspx And a good article with sample code and powerpoints here :: .NET 3.0 Rules Engine - Matt |
|
|