C# Class Itenso.TimePeriod.TimeBlock

Inheritance: ITimeBlock
Afficher le fichier Open project: jwg4/date-difference Class Usage Examples

Méthodes publiques

Свойство Type Description
Anytime TimeBlock

Méthodes publiques

Méthode Description
Copy ( ) : ITimeBlock
Copy ( System.TimeSpan offset ) : ITimeBlock
DurationFromEnd ( System.TimeSpan newDuration ) : void
DurationFromStart ( System.TimeSpan newDuration ) : void
Equals ( object obj ) : bool
GetDescription ( ITimeFormatter formatter = null ) : string
GetHashCode ( ) : int
GetIntersection ( ITimePeriod period ) : ITimeBlock
GetNextPeriod ( ) : ITimeBlock
GetNextPeriod ( System.TimeSpan offset ) : ITimeBlock
GetPreviousPeriod ( ) : ITimeBlock
GetPreviousPeriod ( System.TimeSpan offset ) : ITimeBlock
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
Setup ( System.DateTime newStart, System.TimeSpan newDuration ) : void
TimeBlock ( ) : System
TimeBlock ( System.DateTime start, System.DateTime end, bool isReadOnly = false ) : System
TimeBlock ( System.DateTime start, System.TimeSpan duration, bool isReadOnly = false ) : System
TimeBlock ( System.DateTime moment, bool isReadOnly = false ) : System
TimeBlock ( ITimePeriod copy ) : System
TimeBlock ( System.TimeSpan duration, System.DateTime end, bool isReadOnly = false ) : System
ToString ( ) : string

Méthodes protégées

Méthode Description
CheckModification ( ) : void
ComputeHashCode ( ) : int
Format ( ITimeFormatter formatter ) : string
IsEqual ( object obj ) : bool
TimeBlock ( ITimePeriod copy, bool isReadOnly ) : System

Private Methods

Méthode Description
HasSameData ( TimeBlock comp ) : bool
TimeBlock ( bool isReadOnly = false ) : System

Method Details

CheckModification() protected méthode

protected CheckModification ( ) : void
Résultat void

ComputeHashCode() protected méthode

protected ComputeHashCode ( ) : int
Résultat int

Copy() public méthode

public Copy ( ) : ITimeBlock
Résultat ITimeBlock

Copy() public méthode

public Copy ( System.TimeSpan offset ) : ITimeBlock
offset System.TimeSpan
Résultat ITimeBlock

DurationFromEnd() public méthode

public DurationFromEnd ( System.TimeSpan newDuration ) : void
newDuration System.TimeSpan
Résultat void

DurationFromStart() public méthode

public DurationFromStart ( System.TimeSpan newDuration ) : void
newDuration System.TimeSpan
Résultat void

Equals() public final méthode

public final Equals ( object obj ) : bool
obj object
Résultat bool

Format() protected méthode

protected Format ( ITimeFormatter formatter ) : string
formatter ITimeFormatter
Résultat string

GetDescription() public méthode

public GetDescription ( ITimeFormatter formatter = null ) : string
formatter ITimeFormatter
Résultat string

GetHashCode() public final méthode

public final GetHashCode ( ) : int
Résultat int

GetIntersection() public méthode

public GetIntersection ( ITimePeriod period ) : ITimeBlock
period ITimePeriod
Résultat ITimeBlock

GetNextPeriod() public méthode

public GetNextPeriod ( ) : ITimeBlock
Résultat ITimeBlock

GetNextPeriod() public méthode

public GetNextPeriod ( System.TimeSpan offset ) : ITimeBlock
offset System.TimeSpan
Résultat ITimeBlock

GetPreviousPeriod() public méthode

public GetPreviousPeriod ( ) : ITimeBlock
Résultat ITimeBlock

GetPreviousPeriod() public méthode

public GetPreviousPeriod ( System.TimeSpan offset ) : ITimeBlock
offset System.TimeSpan
Résultat ITimeBlock

GetRelation() public méthode

public GetRelation ( ITimePeriod test ) : PeriodRelation
test ITimePeriod
Résultat PeriodRelation

HasInside() public méthode

public HasInside ( System.DateTime test ) : bool
test System.DateTime
Résultat bool

HasInside() public méthode

public HasInside ( ITimePeriod test ) : bool
test ITimePeriod
Résultat bool

IntersectsWith() public méthode

public IntersectsWith ( ITimePeriod test ) : bool
test ITimePeriod
Résultat bool

IsEqual() protected méthode

protected IsEqual ( object obj ) : bool
obj object
Résultat bool

IsSamePeriod() public méthode

public IsSamePeriod ( ITimePeriod test ) : bool
test ITimePeriod
Résultat bool

Move() public méthode

public Move ( System.TimeSpan offset ) : void
offset System.TimeSpan
Résultat void

OverlapsWith() public méthode

public OverlapsWith ( ITimePeriod test ) : bool
test ITimePeriod
Résultat bool

Reset() public méthode

public Reset ( ) : void
Résultat void

Setup() public méthode

public Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
newStart System.DateTime
newEnd System.DateTime
Résultat void

Setup() public méthode

public Setup ( System.DateTime newStart, System.TimeSpan newDuration ) : void
newStart System.DateTime
newDuration System.TimeSpan
Résultat void

TimeBlock() public méthode

public TimeBlock ( ) : System
Résultat System

TimeBlock() public méthode

public TimeBlock ( System.DateTime start, System.DateTime end, bool isReadOnly = false ) : System
start System.DateTime
end System.DateTime
isReadOnly bool
Résultat System

TimeBlock() public méthode

public TimeBlock ( System.DateTime start, System.TimeSpan duration, bool isReadOnly = false ) : System
start System.DateTime
duration System.TimeSpan
isReadOnly bool
Résultat System

TimeBlock() public méthode

public TimeBlock ( System.DateTime moment, bool isReadOnly = false ) : System
moment System.DateTime
isReadOnly bool
Résultat System

TimeBlock() public méthode

public TimeBlock ( ITimePeriod copy ) : System
copy ITimePeriod
Résultat System

TimeBlock() protected méthode

protected TimeBlock ( ITimePeriod copy, bool isReadOnly ) : System
copy ITimePeriod
isReadOnly bool
Résultat System

TimeBlock() public méthode

public TimeBlock ( System.TimeSpan duration, System.DateTime end, bool isReadOnly = false ) : System
duration System.TimeSpan
end System.DateTime
isReadOnly bool
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Anytime public_oe static_oe property

public static TimeBlock,Itenso.TimePeriod Anytime
Résultat TimeBlock