Hello

I'm trying to port some code from .NET C# to Mono C# and i'm getting this error

in .NET i have this line
StartTime = DateTime.Now.Ticks;

In mono i only put it working with
Process.StartTime = DateTime.Now.Ticks;
including the "using System.Diagnostics;" that o do not need in .NET and i get the error:


[Task:File=/home/esqueleto/develop/MonoSocket/SocketManager.cs, Line=42, Column=-1, Type=Error, Description=An object reference is required for the non-static field `StartTime'(CS0120)

How can o resolve this??


tkx in advance Paulo Aboim Pinto Odivelas - Portugal _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to