Class Interval
Описывает интервал дат.
Inheritance
System.Object
Interval
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lers.Data
Assembly: Lers.Core.dll
Syntax
public class Interval
Constructors
Interval(DateTime, DateTime)
Конструктор с инициализацией полей.
Declaration
public Interval(DateTime start, DateTime end)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | start | Дата начала интервала. |
| DateTime | end | Дата окончания интервала. |
Properties
Duration
Продолжительность интервала.
Declaration
public TimeSpan Duration { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
End
Дата окончания интервала.
Declaration
public DateTime End { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Start
Дата начала интервала.
Declaration
public DateTime Start { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
Deconstruct(out DateTime, out DateTime)
Деконструктор.
Declaration
public void Deconstruct(out DateTime start, out DateTime end)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | start | |
| DateTime | end |
Equals(Interval)
Убеждается, что интервалы совпадают.
Declaration
public bool Equals(Interval interval)
Parameters
| Type | Name | Description |
|---|---|---|
| Interval | interval |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()