Dim fi As New FileInfo(strPath)
If (fi.Attributes And FileAttributes.ReadOnly) <> 0 Then
fi.Attributes = fi.Attributes Xor FileAttributes.ReadOnly
End If
...全文
1507打赏收藏
如何把这两句vb.net翻译成c#?
Dim fi As New FileInfo(strPath) If (fi.Attributes And FileAttributes.ReadOnly) 0 Then fi.Attributes = fi.Attributes Xor FileAttributes.ReadOnly End If