UnsignedShort

UnsignedShort class

Encapsulates the Unsigned Short (US) VR type. https://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html#:~:text=US-,Unsigned%20Short,-Unsigned%20binary%20integer.

public sealed class UnsignedShort : ValueElement<ushort>

Constructors

NameDescription
UnsignedShort(Tag, Span<ushort>)
UnsignedShort(Tag, ushort)Initializes a new instance of the UnsignedShort with the given value and tag.

Properties

NameDescription
Count { get; }
Data { get; }
Tag { get; }
override ValueRepresentation { get; }

Methods

NameDescription
Add(ushort)
AddRange(Span<ushort>)
ConvertData<TOutput>(Func<ushort, TOutput>)
Get(int)
Get<TValue>(Index)
Get<TValue>(int)
GetOrDefault<TValue>(Index)
GetOrDefault<TValue>(int)
GetSingleOrDefault()
GetValues()
GetValues(Range)
GetValues<TValue>()
GetValues<TValue>(Range)
Insert(int, ushort)
Remove(ushort)
RemoveAt(int)
Replace(IEnumerable<ushort>)
override ToString()
TryGetValue<TValue>(Index, out TValue)
TryGetValue<TValue>(int, out TValue)

See Also