-
Notifications
You must be signed in to change notification settings - Fork 0
Variables
sancalle edited this page Oct 14, 2022
·
4 revisions
var variable: string = "this is a variable";
or
let variable: string = "this is a variable";
In C# those are wrapped into a static class
namespace Codeverter
{
public static class Helper
{
public static string Variable = "this is a variable";
}
}
public static string Variable = "this is a variable";
public static int Variable = 1;
public static bool Variable = true;
public static int[] Numbers = new int[] { 1, 2, 3 };
public static string[] Animals = new string[] { "cat", "dog", "horse" };
public static DateTime Variable = new DateTime(); // original constant assignation as comment
public static Variable Variable = null; // original constant assignation as comment
package codeverter
var Variable string = "this is a variable"
var Variable string = "this is a variable"
var Variable int = 1
var Variable bool = true
var Numbers []int = []int{1, 2, 3}
var Animals []string = []string{"cat", "dog", "horse"}
var Variable time.Time = time.Now() // original constant assignation as comment
var Variable Foo // original constant assignation as comment
In C# those are wrapped into a static class
Namespace Codeverter
Module Helper
Dim variable As String = "THIS IS A CONSTANT"
End Module
End Namespace
Dim variable As String = "THIS IS A CONSTANT"
Dim variable As Integer = 1
Dim variable As Boolean = true
Dim constant As Integer() = { 1, 2, 3 }
Dim Animals As String() = { "cat", "dog", "horse" }
Dim constant As Date = new DateTime() 'new Date()
Dim constant As Foo = New Foo() 'new Foo()
Supported. For example:
let variable = "this is a variable";
public static string Variable = "this is a variable";
var Variable string = "this is a variable"
Dim variable As String = "this is a variable"