Class TagDictionary
The class is used to look up tags in a dictionary for relevant information such as vr type.
Inheritance
System.Object
TagDictionary
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)
System.Object.ToString()
Namespace:EvilDICOM.Core.Dictionaries
Assembly:EvilDICOM.dll
Syntax
public static class TagDictionary
Fields
View SourceTags
Declaration
public static Dictionary<string, TagDictionary.TagInfo> Tags
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, TagDictionary.TagInfo> |
Methods
View SourceAddEntry<T>(String, String)
Adds an entry to the DICOM Dictionary for reading files
Declaration
public static void AddEntry<T>(string id, string description)
where T : IDICOMElement
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | the tag id of the element |
| System.String | description | the description of the element |
Type Parameters
| Name | Description |
|---|---|
| T | the type of VR to add |
GetDescription(Tag)
Gets the description of the tag
Declaration
public static string GetDescription(Tag tag)
Parameters
| Type | Name | Description |
|---|---|---|
| Tag | tag | the tag containing the id |
Returns
| Type | Description |
|---|---|
| System.String | a string description of the tag in camel case |
GetDescription(String)
Gets the description of the tag
Declaration
public static string GetDescription(string completeId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | completeId |
Returns
| Type | Description |
|---|---|
| System.String | a string description of the tag in camel case |
GetVRFromTag(Tag)
Finds the appropriate VR for a given tag by looking up the tag in a DICOM dictionary
Declaration
public static VR GetVRFromTag(Tag tag)
Parameters
| Type | Name | Description |
|---|---|---|
| Tag | tag | the tag containing the id to find in the dictionary |
Returns
| Type | Description |
|---|---|
| VR |