c#指针传参指针可以使用IntPtr或者引用ref,或者直接使用unsafe,或out
void 数量提示(ref DataTable 数量表) { this.Text = (this.Text.Contains("已收录:") ? this.Text.Remove(this.Text.IndexOf("已收录:")).Trim() : this.Text) + " 已收录:" + 数量表.Rows.Count + "条数据。"; }
c#指针传参指针可以使用IntPtr或者引用ref,或者直接使用unsafe,或out
void 数量提示(ref DataTable 数量表) { this.Text = (this.Text.Contains("已收录:") ? this.Text.Remove(this.Text.IndexOf("已收录:")).Trim() : this.Text) + " 已收录:" + 数量表.Rows.Count + "条数据。"; }