c# 里 参数this,eventargs.empty表示什么意思
来源:百度知道 编辑:UC知道 时间:2024/05/27 04:34:56
this,eventargs.empty
this指当前对象吗?
方法里面传两个参数 (this,eventargs.empty),表示清空当前对象吗?
this指当前对象吗?
方法里面传两个参数 (this,eventargs.empty),表示清空当前对象吗?
this是指当前的对象
eventargs是事件的集合
empty用于对string 类型进行空赋值,
如String strA = string.Empty;
(this, eventargs.empty)中的this表示把当前实例做为一个参数传入,eventargs.empty表示传入一个空的事件源。eventargs是一个玫举类型的,其中一个值empty表示空
this是当前对象
eventargs是当前事件的处理参数
empty用于对对象赋予空值