Class DICOMData<T>
A class to hold DICOM data. DICOM data is unique in that it can be a single value, multiple values and null. This class tries to encapsulate those attributes while maintaining a flexible programming interface.
Inheritance
Inherited Members
Namespace:EvilDICOM.Core
Assembly:EvilDICOM.dll
Syntax
public class DICOMData<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
View SourceDICOMData()
The constructor which ininitializes the underlying enumerable collection
Declaration
public DICOMData()
Properties
View SourceMultipicityValue
A list of the data within the element. This is designed to be accomodate the multiplicity aspect of DICOM data
Declaration
public List<T> MultipicityValue { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T> |
SingleValue
Gets and sets a single value for the data of the DICOM element. If the collection contains has more than one data element, only the first is returned. If setting a value, the data is cleared and only a single entry is saved.
Declaration
public T SingleValue { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
View SourceCreateFromArray(T[])
Creates a new DICOM Data object from an array of data
Declaration
public static DICOMData<T> CreateFromArray(T[] dataArray)
Parameters
Type | Name | Description |
---|---|---|
T[] | dataArray | the data array from which to initialize the DICOM Data object |
Returns
Type | Description |
---|---|
DICOMData<T> |
CreateFromSingle(T)
Creates a new DICOM Data object from a single data value
Declaration
public static DICOMData<T> CreateFromSingle(T dataValue)
Parameters
Type | Name | Description |
---|---|---|
T | dataValue | the data value from which to initialize the DICOM Data object |
Returns
Type | Description |
---|---|
DICOMData<T> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
ToString(String)
Converts the data to a string separated value
Declaration
public string ToString(string split = "\\")
Parameters
Type | Name | Description |
---|---|---|
System.String | split | the separation character to use between the data elements (default is ) |
Returns
Type | Description |
---|---|
System.String | the data as a string |