C# Class Itenso.TimePeriod.TimePeriodCollection

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

Méthodes publiques

Méthode Description
Add ( ITimePeriod item ) : void
AddAll ( IEnumerable timePeriods ) : void
Clear ( ) : void
Contains ( ITimePeriod item ) : bool
ContainsPeriod ( ITimePeriod test ) : bool
CopyTo ( ITimePeriod array, int arrayIndex ) : void
Equals ( object obj ) : bool
GetDescription ( ITimeFormatter formatter = null ) : string
GetEnumerator ( ) : IEnumerator
GetHashCode ( ) : int
GetRelation ( ITimePeriod test ) : PeriodRelation
HasInside ( System.DateTime test ) : bool
HasInside ( ITimePeriod test ) : bool
HasInsidePeriods ( ITimePeriod test ) : bool
HasIntersectionPeriods ( System.DateTime test ) : bool
HasIntersectionPeriods ( ITimePeriod test ) : bool
HasOverlapPeriods ( ITimePeriod test ) : bool
IndexOf ( ITimePeriod item ) : int
Insert ( int index, ITimePeriod item ) : void
InsidePeriods ( ITimePeriod test ) : ITimePeriodCollection
IntersectionPeriods ( System.DateTime test ) : ITimePeriodCollection
IntersectionPeriods ( ITimePeriod test ) : ITimePeriodCollection
IntersectsWith ( ITimePeriod test ) : bool
IsSamePeriod ( ITimePeriod test ) : bool
Move ( System.TimeSpan delta ) : void
OverlapPeriods ( ITimePeriod test ) : ITimePeriodCollection
OverlapsWith ( ITimePeriod test ) : bool
RelationPeriods ( ITimePeriod test, PeriodRelation relation ) : ITimePeriodCollection
Remove ( ITimePeriod item ) : bool
RemoveAt ( int index ) : void
Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
SortByDuration ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
SortByEnd ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
SortByStart ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
TimePeriodCollection ( ) : System
TimePeriodCollection ( IEnumerable timePeriods ) : System
ToString ( ) : string
this ( int index ) : ITimePeriod

Méthodes protégées

Méthode Description
ComputeHashCode ( ) : int
Format ( ITimeFormatter formatter ) : string
GetDuration ( ) : TimeSpan?
GetEnd ( ) : DateTime?
GetStart ( ) : DateTime?
GetStartEnd ( System.DateTime &start, System.DateTime &end ) : void
IsEqual ( object obj ) : bool

Private Methods

Méthode Description
HasSameData ( IList comp ) : bool
IEnumerable ( ) : IEnumerator

Method Details

Add() public méthode

public Add ( ITimePeriod item ) : void
item ITimePeriod
Résultat void

AddAll() public méthode

public AddAll ( IEnumerable timePeriods ) : void
timePeriods IEnumerable
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

ComputeHashCode() protected méthode

protected ComputeHashCode ( ) : int
Résultat int

Contains() public méthode

public Contains ( ITimePeriod item ) : bool
item ITimePeriod
Résultat bool

ContainsPeriod() public méthode

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

CopyTo() public méthode

public CopyTo ( ITimePeriod array, int arrayIndex ) : void
array ITimePeriod
arrayIndex int
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

GetDuration() protected méthode

protected GetDuration ( ) : TimeSpan?
Résultat TimeSpan?

GetEnd() protected méthode

protected GetEnd ( ) : DateTime?
Résultat DateTime?

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetHashCode() public final méthode

public final GetHashCode ( ) : int
Résultat int

GetRelation() public méthode

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

GetStart() protected méthode

protected GetStart ( ) : DateTime?
Résultat DateTime?

GetStartEnd() protected méthode

protected GetStartEnd ( System.DateTime &start, System.DateTime &end ) : void
start System.DateTime
end System.DateTime
Résultat void

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

HasInsidePeriods() public méthode

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

HasIntersectionPeriods() public méthode

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

HasIntersectionPeriods() public méthode

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

HasOverlapPeriods() public méthode

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

IndexOf() public méthode

public IndexOf ( ITimePeriod item ) : int
item ITimePeriod
Résultat int

Insert() public méthode

public Insert ( int index, ITimePeriod item ) : void
index int
item ITimePeriod
Résultat void

InsidePeriods() public méthode

public InsidePeriods ( ITimePeriod test ) : ITimePeriodCollection
test ITimePeriod
Résultat ITimePeriodCollection

IntersectionPeriods() public méthode

public IntersectionPeriods ( System.DateTime test ) : ITimePeriodCollection
test System.DateTime
Résultat ITimePeriodCollection

IntersectionPeriods() public méthode

public IntersectionPeriods ( ITimePeriod test ) : ITimePeriodCollection
test ITimePeriod
Résultat ITimePeriodCollection

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 delta ) : void
delta System.TimeSpan
Résultat void

OverlapPeriods() public méthode

public OverlapPeriods ( ITimePeriod test ) : ITimePeriodCollection
test ITimePeriod
Résultat ITimePeriodCollection

OverlapsWith() public méthode

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

RelationPeriods() public méthode

public RelationPeriods ( ITimePeriod test, PeriodRelation relation ) : ITimePeriodCollection
test ITimePeriod
relation PeriodRelation
Résultat ITimePeriodCollection

Remove() public méthode

public Remove ( ITimePeriod item ) : bool
item ITimePeriod
Résultat bool

RemoveAt() public méthode

public RemoveAt ( int index ) : void
index int
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

SortByDuration() public méthode

public SortByDuration ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
sortDirection ListSortDirection
Résultat void

SortByEnd() public méthode

public SortByEnd ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
sortDirection ListSortDirection
Résultat void

SortByStart() public méthode

public SortByStart ( ListSortDirection sortDirection = ListSortDirection.Ascending ) : void
sortDirection ListSortDirection
Résultat void

TimePeriodCollection() public méthode

public TimePeriodCollection ( ) : System
Résultat System

TimePeriodCollection() public méthode

public TimePeriodCollection ( IEnumerable timePeriods ) : System
timePeriods IEnumerable
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

this() public méthode

public this ( int index ) : ITimePeriod
index int
Résultat ITimePeriod