C# Class Itenso.TimePeriod.TimeRange

Inheritance: ITimeRange
Mostrar archivo Open project: jwg4/date-difference Class Usage Examples

Public Properties

Property Type Description
Anytime TimeRange

Public Methods

Method Description
Copy ( ) : ITimeRange
Copy ( System.TimeSpan offset ) : ITimeRange
Equals ( object obj ) : bool
ExpandEndTo ( System.DateTime moment ) : void
ExpandStartTo ( System.DateTime moment ) : void
ExpandTo ( System.DateTime moment ) : void
ExpandTo ( ITimePeriod period ) : void
GetDescription ( ITimeFormatter formatter = null ) : string
GetHashCode ( ) : int
GetIntersection ( ITimePeriod period ) : ITimeRange
GetRelation ( ITimePeriod test ) : PeriodRelation
HasInside ( System.DateTime test ) : bool
HasInside ( ITimePeriod test ) : bool
IntersectsWith ( ITimePeriod test ) : bool
IsSamePeriod ( ITimePeriod test ) : bool
Move ( System.TimeSpan offset ) : void
OverlapsWith ( ITimePeriod test ) : bool
Reset ( ) : void
Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
ShrinkEndTo ( System.DateTime moment ) : void
ShrinkStartTo ( System.DateTime moment ) : void
ShrinkTo ( ITimePeriod period ) : void
TimeRange ( ) : System
TimeRange ( System.DateTime start, System.DateTime end, bool isReadOnly = false ) : System
TimeRange ( System.DateTime start, System.TimeSpan duration, bool isReadOnly = false ) : System
TimeRange ( System.DateTime moment, bool isReadOnly = false ) : System
TimeRange ( ITimePeriod copy ) : System
ToString ( ) : string

Protected Methods

Method Description
CheckModification ( ) : void
ComputeHashCode ( ) : int
Format ( ITimeFormatter formatter ) : string
IsEqual ( object obj ) : bool
TimeRange ( ITimePeriod copy, bool isReadOnly ) : System

Private Methods

Method Description
HasSameData ( TimeRange comp ) : bool
TimeRange ( bool isReadOnly = false ) : System

Method Details

CheckModification() protected method

protected CheckModification ( ) : void
return void

ComputeHashCode() protected method

protected ComputeHashCode ( ) : int
return int

Copy() public method

public Copy ( ) : ITimeRange
return ITimeRange

Copy() public method

public Copy ( System.TimeSpan offset ) : ITimeRange
offset System.TimeSpan
return ITimeRange

Equals() public final method

public final Equals ( object obj ) : bool
obj object
return bool

ExpandEndTo() public method

public ExpandEndTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandStartTo() public method

public ExpandStartTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandTo() public method

public ExpandTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandTo() public method

public ExpandTo ( ITimePeriod period ) : void
period ITimePeriod
return void

Format() protected method

protected Format ( ITimeFormatter formatter ) : string
formatter ITimeFormatter
return string

GetDescription() public method

public GetDescription ( ITimeFormatter formatter = null ) : string
formatter ITimeFormatter
return string

GetHashCode() public final method

public final GetHashCode ( ) : int
return int

GetIntersection() public method

public GetIntersection ( ITimePeriod period ) : ITimeRange
period ITimePeriod
return ITimeRange

GetRelation() public method

public GetRelation ( ITimePeriod test ) : PeriodRelation
test ITimePeriod
return PeriodRelation

HasInside() public method

public HasInside ( System.DateTime test ) : bool
test System.DateTime
return bool

HasInside() public method

public HasInside ( ITimePeriod test ) : bool
test ITimePeriod
return bool

IntersectsWith() public method

public IntersectsWith ( ITimePeriod test ) : bool
test ITimePeriod
return bool

IsEqual() protected method

protected IsEqual ( object obj ) : bool
obj object
return bool

IsSamePeriod() public method

public IsSamePeriod ( ITimePeriod test ) : bool
test ITimePeriod
return bool

Move() public method

public Move ( System.TimeSpan offset ) : void
offset System.TimeSpan
return void

OverlapsWith() public method

public OverlapsWith ( ITimePeriod test ) : bool
test ITimePeriod
return bool

Reset() public method

public Reset ( ) : void
return void

Setup() public method

public Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
newStart System.DateTime
newEnd System.DateTime
return void

ShrinkEndTo() public method

public ShrinkEndTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ShrinkStartTo() public method

public ShrinkStartTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ShrinkTo() public method

public ShrinkTo ( ITimePeriod period ) : void
period ITimePeriod
return void

TimeRange() public method

public TimeRange ( ) : System
return System

TimeRange() public method

public TimeRange ( System.DateTime start, System.DateTime end, bool isReadOnly = false ) : System
start System.DateTime
end System.DateTime
isReadOnly bool
return System

TimeRange() public method

public TimeRange ( System.DateTime start, System.TimeSpan duration, bool isReadOnly = false ) : System
start System.DateTime
duration System.TimeSpan
isReadOnly bool
return System

TimeRange() public method

public TimeRange ( System.DateTime moment, bool isReadOnly = false ) : System
moment System.DateTime
isReadOnly bool
return System

TimeRange() public method

public TimeRange ( ITimePeriod copy ) : System
copy ITimePeriod
return System

TimeRange() protected method

protected TimeRange ( ITimePeriod copy, bool isReadOnly ) : System
copy ITimePeriod
isReadOnly bool
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Anytime public_oe static_oe property

public static TimeRange,Itenso.TimePeriod Anytime
return TimeRange