Show / Hide Table of Contents

Class TimerEx

Extension of the TimerEx class. Provides all previously available functionality, and includes some useful extensions.

Inheritance
object
MarshalByRefObject
Component
Timer
TimerEx
Implements
IComponent
ISupportInitialize
IDisposableEx
IDisposable
Inherited Members
Timer.BeginInit()
Timer.Close()
Timer.Dispose(bool)
Timer.EndInit()
Timer.AutoReset
Timer.Interval
Timer.Site
Timer.SynchronizingObject
Timer.Elapsed
Component.Dispose()
Component.GetService(Type)
Component.ToString()
Component.CanRaiseEvents
Component.Container
Component.DesignMode
Component.Events
Component.Disposed
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: TheXDS.MCART.Types
Assembly: MCART.dll
Syntax
public class TimerEx : Timer, IComponent, ISupportInitialize, IDisposableEx, IDisposable

Constructors

| Edit this page View Source

TimerEx()

Initializes a new instance of the TimerEx.

Declaration
public TimerEx()
| Edit this page View Source

TimerEx(double)

Initializes a new instance of the TimerEx and sets the Interval property to the specified number of milliseconds.

Declaration
public TimerEx(double interval)
Parameters
Type Name Description
double interval

Time, in milliseconds, between events. This value must be greater than zero and less than MaxValue.

Properties

| Edit this page View Source

Enabled

Gets or sets a value indicating whether this TimerEx should raise the Elapsed event.

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

IsDisposed

Gets a value indicating whether this object has been disposed.

Declaration
public bool IsDisposed { get; }
Property Value
Type Description
bool
| Edit this page View Source

StartTime

Indicates the start time of this TimerEx.

Declaration
public DateTime? StartTime { get; }
Property Value
Type Description
DateTime?
| Edit this page View Source

TimeLeft

Indicates the amount of time remaining before meeting the interval set in Interval.

Declaration
public TimeSpan? TimeLeft { get; }
Property Value
Type Description
TimeSpan?

Methods

| Edit this page View Source

Reset()

Resets this TimerEx.

Declaration
public void Reset()
| Edit this page View Source

Start()

Starts generating the Elapsed event by setting Enabled to true.

Declaration
public void Start()
| Edit this page View Source

Stop()

Stops generating the Elapsed event by setting Enabled to false.

Declaration
public void Stop()

Implements

IComponent
ISupportInitialize
IDisposableEx
IDisposable

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX