VB.net基础:不要写这样的句子(更新中)

——————————————————————————————

不应该写
Private Function A( ByVal B As Integer ) As Boolean

If B > 0 Then

Return True

Else

Return False

End If

End Function

而应该写
Private Function A( ByVal B As Integer ) As Boolean

Return (B > 0)

End Function
——————————————————————————————

Published At
Categories with Web编程
Tagged with
comments powered by Disqus