Click or drag to resize
DfsExtensionsCreateEmptyItemDataT Method (IDfsFile, Int32)
Create an IDfsItemDataT of the correct type for the item with the given itemNumber.

The result can be used by ReadItemTimeStep(IDfsItemData, Int32)

If not the item is of type {T}, an exception will be thrown.

Namespace: DHI.Generic.MikeZero.DFS
Assembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
public static IDfsItemData<T> CreateEmptyItemData<T>(
	this IDfsFile dfsFile,
	int itemNumber
)

Parameters

dfsFile
Type: DHI.Generic.MikeZero.DFSIDfsFile
itemNumber
Type: SystemInt32

Type Parameters

T

Return Value

Type: IDfsItemDataT

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDfsFile. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also