Click or drag to resize

DfsDateTimeLazyList Class

This class is a wrapper around the IDfsFile, extracting DateTimes of timestep on request: When requesting a DateTime in [!:Item(int)], the timestep at that index is being read, stored for later use and returned.

This is usefull if performing operations that only accesses a fraction of the DateTimes in the file, e.g. when performing a binary search for a given date.

This should only be used when reading from file, not when writing/modifying timesteps, since this will move the file pointer (for files with non-equidistant time axis), and updates to the file will not be reflected in this object.

Inheritance Hierarchy
SystemObject
  DHI.Generic.MikeZero.DFSDfsDateTimeLazyList

Namespace:  DHI.Generic.MikeZero.DFS
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class DfsDateTimeLazyList : IReadOnlyList, 
	IEnumerable<DateTime>, IEnumerable, IReadOnlyCollection

The DfsDateTimeLazyList type exposes the following members.

Constructors
  NameDescription
Public methodDfsDateTimeLazyList
Create DateTime list wrapper for the IDfsFile
Top
Properties
  NameDescription
Public propertyCount
Public propertyItem
Public propertyStartTime
StartTime of dfs file. If dfs file has a calendar axis, this is read from the file. If the dfs file has a time axis, this must be set explicitly.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
See Also