FileSystemAccessRule rule = this.ACEDetails.SelectedNode.Tag as FileSystemAcc
FileSystemAccessRule rule = this.ACEDetails.SelectedNode.Tag as FileSystemAccessRule;
as 这里是什么意思啊
FileSystemAccessRule rule = this.ACEDetails.SelectedNode.Tag as FileSystemAccessRule;
as 这里是什么意思啊
as 运算符类似于类型转换,所不同的是,当转换失败时,as 运算符将产生空,而不是引发异常。在形式上,这种形式的表达式:
expression as type
等效于:
expression is type ? (type)expression : (type)null
只是 expression 只被计算一次。