日期:2014-05-18 浏览次数:20775 次
protected virtual void OnTitleReceived(object sender, ReceiveTitleEventArgs e);
protected override void OnTitleReceived(object sender, ReceiveTitleEventArgs e) { base.OnTitleReceived(sender, e); }
Regex reg=new Regex(@"(?i)(public|protected)\svirtual\s(void)\s(\w+)\(((\w+)\s(\w+),\s\w+\s(\w+))?\);"); yourstr=reg.Replace(yourstr,"$1 override $2 $3($4)\r\n{\r\nbase.$3($6,$7)\r\n}");