GetOrDefault
Contents
[
Hide
]GetOrDefault<T>(int)
Returns the element’s value at the specified position or a default value if the index is out of range.
public T? GetOrDefault<T>(int index)
| Parameter | Description |
|---|---|
| T | Type of the return value. |
| index | The zero-based index of the element value to retrieve. |
Return Value
The T value.
See Also
- interface IElement
- namespace Aspose.Medical.Dicom.Elements
- assembly Aspose.Medical
GetOrDefault<T>(Index)
Returns the element’s value at the specified position or a default value if the index is out of range.
public T? GetOrDefault<T>(Index index)
| Parameter | Description |
|---|---|
| T | Type of the return value. |
| index | The index of the element value to retrieve, which is either from the beginning or the end of the sequence. |
Return Value
The T value.
See Also
- interface IElement
- namespace Aspose.Medical.Dicom.Elements
- assembly Aspose.Medical