| VB.NET |
|
| Dim sMonth As String = Now.Month.ToString |
 |
| C# |
|
| string sMonth = System.DateTime.Now.Month.ToString(); |
|
|
|
| VB.NET |
|
| Public Const NEWLINE As String = vbCrLf |
 |
| C# |
|
| public const string NEWLINE = "\r\n"; |
|
|
|
| VB.NET |
|
| Dim sValue As String = reader("FirstName") |
 |
| C# |
|
| string sValue = (string)reader["Name"]; |
|
|
|
| VB.NET |
|
| Dim sCampusName As String = Request.QueryString("Campus") & "" |
 |
| C# |
|
| string sCampusName = Request.QueryString["Campus"] + ""; |
|
|
|
| VB.NET |
|
| sPersonName = sPersonName.Trim |
 |
| C# |
|
| sPersonName = sPersonName.Trim(); |
|
|
|
| VB.NET |
|
| Dim arNames() As String = sAllNames.Split(",") |
 |
| C# |
|
| string[] arNames = sAllNames.Split(new string[] {","}, StringSplitOptions.None); |
|
|
|