[Mono-list] Process.StartTime error
Paulo Aboim Pinto
esqueleto@tusofona.com
Fri, 14 Jan 2005 01:01:58 +0000
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