AspBucket offers ASP.NET, C#, VB, Jquery, CSS, Ajax, SQL tutorials. It is the best place for programmers to learn

Tuesday, 29 September 2015

How to Comments in VB and C# Code?


In this blog article we will discuss how to comments in VB and C# Code? So let's start In VB code, a single quote or apostrophe ( ' ) indicates that the remainder of the line is to be ignored as a comment, while in C# code, two slashes ( // ) achieve the same end.

Visual Basic Comment
'set the label text to the current time

C# Comment
//set the label text to the current time

C# code also lets us span a comment over multiple lines if we begin it with /* and end it with */ , as in this example:
/*set the label text to the current time */

Hope you like this articles. Please give suggestion in below comments.

0 comments :

Post a comment

  • Popular Posts
  • Comments