Show / Hide Table of Contents
View Source

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
System.Object
DICOMData<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:EvilDICOM.Core
Assembly:EvilDICOM.dll
Syntax
public class DICOMData<T>
Type Parameters
Name Description
T

Constructors

View Source

DICOMData()

The constructor which ininitializes the underlying enumerable collection

Declaration
public DICOMData()

Properties

View Source

MultipicityValue

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>
View Source

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 Source

CreateFromArray(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>
View Source

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>
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
View Source

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

Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX