Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Utils Members

Utils overview

Public Static (Shared) Properties

CurrentTimeMillis Placeholder for java.lang.System.currentTimeMillis
ThreadInterrupted Has been interrupted this thread

Public Static (Shared) Methods

CurrentNanoSeconds Returns the number of nanoseconds for the current value of Now
DeltaTimeMillisMissing <summary> documentation for M:Spring.Threading.Utils.DeltaTimeMillis(System.DateTime,System.DateTime) 
FailFastIfInterrupted .NET threads have not a method to check if they have been interrupted. Moreover, differently from java threads, when entering locked blocks, Monitor, Sleep, SpinWait and so on, a ThreadInterruptedException will be raised by the runtime. Spring.Threading classes usually call this method before entering a lock block, to mirror java code Usually this is non issue because the same exception will be raised entering the monitor associated with the lock ()
NanoSecondsTimeSpan Returns a TimeSpan representing the number of nanoseconds passed in via nanoSeconds.
TimeSpanNanoSeconds Returns the number of nano seconds represented by the timeSpan
ToTimeMillis Normalize the given DateTime so that is is comparable with CurrentTimeMillis.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Utils Class | Spring.Threading Namespace