C#生成訂單編號的一個簡單方法,僅適用於小數據,因爲這個方法是通過將時間精確到毫秒來生成編號,面對大數據,也有可能“撞衫”!
System.DateTime.Now.ToString("yyyyMMddHHmmssfff")
如此簡單。C#生成訂單編號的一個簡單方法,僅適用於小數據,因爲這個方法是通過將時間精確到毫秒來生成編號,面對大數據,也有可能“撞衫”!
System.DateTime.Now.ToString("yyyyMMddHHmmssfff")
如此簡單。this.richTextBox2.SelectionStart=this.richTextBox2.Text.Length; this.richTextBox2.ScrollToCaret();
public partial class MyMessageBox : Window { public static void Show(string strErrorInfo) {