In as3 I'd say
public var time:Number;
How to declare such in C#?
In as3 I'd say
public var time:Number;
How to declare such in C#?
public long time;
This will create a new variable with the type long
and the default value. (0
)
public decimal time;
decimal depending of course on the type you want.
See "Types".
You probably want an int, long, float, double, decimal - or maybe DateTime or TimeSpan.
Depending on the type you want:
public double time;
or you could use the DateTime
struct provided by .NET
public DateTime time;
or really, you would probably want to create auto-properties for these like this:
public double Time {get;set;}
or
public DateTime Time {get;set;}
AS3 Number is most closely represented by a double in C#
public double time;