TimePeriod Class |
Namespace: NetQuarry
The TimePeriod type exposes the following members.
Name | Description | |
---|---|---|
![]() | TimePeriod |
Full constructor.
|
Name | Description | |
---|---|---|
![]() | Period |
Gets the date/time period for this item.
|
![]() | PipedList |
Gets the piped list of aliases for this date/time period. For example, in English
the piped list for Quarter is "|q|quarter|quarters|". The leading and trailing pipes
allow for easy matching. This format not only allows for straightforward aliases,
but is also a convenient mechanism for treating plurals and gender (for languages
using gender).
|
![]() | PreferredText |
Get the preferred text for this time period.
|
![]() | Symbol |
Gets the locale-independent symbol for this item.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Match |
Determines if the unprepared symbol matches any alias in this item. This method
is suitable for determining a match on a single symbol. For efficient matching against
multiple symbols, you should prepare the symbol and use MatchPrepared(String).
|
![]() | MatchPrepared |
Determines if the prepared symbol matches any alias in this item. A prepared
symbol must be in LowerInvariant case and be wrapped in leading and trailing pipes.
This method is provided for efficiency when attempting to match multiple periods.
If determining a match for a single period use Match(String) which does
not require preparation.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |