简体   繁体   中英

What is equvalent code for following c# code

if (node.Attributes != null)   //checking for attributes of a xml file node.

我假设您正在寻找VB.NET中的对等物:

If node.Attributes Is Not Nothing Then
if (node.Attributes != null)

Edit:

you have edit your question VB.Net Equilent code..

If node.Attributes IsNot Nothing Then

如果不是(node.Attributes为空),则

I find charp-to-vb a great site for converting between c# and vb.net

In this case

If node.Attributes IsNot Nothing Then
End If

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM