Click or drag to resize

DateTimePropertyEvaluator Class

Represents a property evaluator that attempts to parse the input text as a date and time and returns the corresponding property name and value.
Inheritance Hierarchy
SystemObject
  Altaxo.Serialization.NamePropertyExtractionPropertyEvaluatorBase
    Altaxo.Serialization.NamePropertyExtractionDateTimePropertyEvaluator

Namespace: Altaxo.Serialization.NamePropertyExtraction
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntax
C#
public class DateTimePropertyEvaluator : PropertyEvaluatorBase, 
	IPropertyEvaluator, IPropertyExtractionTreeNode, IEquatable<DateTimePropertyEvaluator>

The DateTimePropertyEvaluator type exposes the following members.

Constructors
 NameDescription
Public methodDateTimePropertyEvaluatorInitializes a new instance of the DateTimePropertyEvaluator class
Top
Properties
 NameDescription
Public propertyChildren Gets a list of child nodes, where each tuple contains the index of the name part and the corresponding child node.
(Inherited from PropertyEvaluatorBase)
Public propertyCustomFormats Gets or sets a custom set of date and time formats. When non-empty, the parser tries these formats before attempting a general parse.
Public propertyDateTimeStyles Gets or sets the date and time styles used for parsing. The default value is System.Globalization.DateTimeStyles.None.
Public propertyLCID Gets or sets the LCID (Locale Identifier) used for parsing the date and time value. The default value is the invariant culture's LCID.
Public propertyNumberOfIgnoredCharactersAfter Gets or sets the number of characters to ignore after the value when parsing. This can be useful for skipping suffixes or other non-date characters in the input text.
Public propertyNumberOfIgnoredCharactersBefore Gets or sets the number of characters to ignore before the value when parsing. This can be useful for skipping prefixes or other non-date characters in the input text.
Public propertyPropertyName Gets or sets the name of the property to be evaluated. This property is required and must be set during initialization.
(Inherited from PropertyEvaluatorBase)
Public propertyUseDateTimeOffset Gets or sets a value indicating whether the parsed value should be returned as a DateTimeOffset instead of a DateTime.
Top
Methods
 NameDescription
Public methodEvaluate Evaluates a text and extracts a property name and its value.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString
(Overrides PropertyEvaluatorBase.ToString)
Top
See Also