• 您的位置我爱Aspx >> VB.Net >> VB.NET and C# 语法比较手册
  • VB.NET and C# 语法比较手册

  • 作者:aspxer  来源:internet  日期:2007-5-20 13:59:18  关键字:c#,.net
  • Math.Pow(x, y)

    Assignment

    = += -= *= /= %= &= |= ^= <<= >>= ++ --

    Bitwise

    & | ^ ~ << >>

    Logical

    && || !

    Note: && and || perform short-circuit logical evaluations

    String Concatenation

    +

    Choices

    greeting = IIf(age < 20, "What@#s up?", "Hello")

    @# One line doesn@#t require "End If", no "Else"

    If language = "VB.NET" Then langType = "verbose"

    @# Use : to put two commands on same line

    If x <> 100 Then x *= 5 : y *= 2

    @# or to break up any long single command use _

    If whenYouHaveAReally < longLine And itNeedsToBeBrokenInto2 > Lines Then _

    UseTheUnderscore(charToBreakItUp)

    @#If x > 5 Then

    x *= y

    ElseIf x = 5 Then

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:开始你的第一个多语言版本的dotNET 应用程序(WinForm篇)
    下一篇:在VB.NET中应用Agent技术