Пример #1
0
        /// <summary>
        /// Try to find a DicomHl7TagMap in the collection using the HL7 Tag as index.
        /// </summary>
        /// <param name="hl7Tag">HL7 Tag used as index.</param>
        /// <returns>DicomHl7TagMap - null if no match found</returns>
        public static DicomHl7TagMap FindTagMap(Hl7Tag hl7Tag)
        {
            DicomHl7TagMap dicomHl7TagMap = null;

            foreach (DicomHl7TagMap lDicomHl7TagMap in _dicomHl7TagMapCollection)
            {
                if (lDicomHl7TagMap.Hl7Tag == hl7Tag)
                {
                    dicomHl7TagMap = lDicomHl7TagMap;
                    break;
                }
            }

            return(dicomHl7TagMap);
        }
Пример #2
0
        /// <summary>
        /// Try to find a DicomHl7TagMap in the collection using the HL7 Tag as index.
        /// </summary>
        /// <param name="hl7Tag">HL7 Tag used as index.</param>
        /// <param name="componentIndex">Component index.</param>
        /// <returns>DicomHl7TagMap - null if no match found</returns>
        public static DicomHl7TagMap FindTagMap(Hl7Tag hl7Tag, int componentIndex)
        {
            DicomHl7TagMap dicomHl7TagMap = null;

            foreach (DicomHl7TagMap lDicomHl7TagMap in _dicomHl7TagMapCollection)
            {
                if ((lDicomHl7TagMap.Hl7Tag == hl7Tag) &&
                    (lDicomHl7TagMap.Hl7ComponentIndex == componentIndex))
                {
                    dicomHl7TagMap = lDicomHl7TagMap;
                    break;
                }
            }

            return(dicomHl7TagMap);
        }
Пример #3
0
 /// <summary>
 /// Determines whether the <see cref="DicomHl7TagMapCollection"/> contains a specific element.
 /// </summary>
 /// <param name="value">The <see cref="DicomHl7TagMap"/> to locate in the <see cref="DicomHl7TagMapCollection"/>.</param>
 /// <returns>
 /// <c>true</c> if the <see cref="DicomHl7TagMapCollection"/> contains the specified value;
 /// otherwise, <c>false</c>.
 /// </returns>
 public bool Contains(DicomHl7TagMap value)
 {
     // If value is not of type Code, this will return false.
     return(List.Contains(value));
 }
Пример #4
0
 /// <summary>
 /// Removes the first occurrence of a specific <see cref="DicomHl7TagMap"/> from the <see cref="DicomHl7TagMapCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="DicomHl7TagMap"/> to remove from the <see cref="DicomHl7TagMapCollection"/>.</param>
 public void Remove(DicomHl7TagMap value)
 {
     List.Remove(value);
 }
Пример #5
0
 /// <summary>
 /// Inserts an <see cref="DicomHl7TagMap"/> element into the <see cref="DicomHl7TagMap"/> at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The <see cref="DicomHl7TagMapCollection"/> to insert.</param>
 public void Insert(int index, DicomHl7TagMap value)
 {
     List.Insert(index, value);
 }
Пример #6
0
 /// <summary>
 /// Searches for the specified <see cref="DicomHl7TagMap"/> and
 /// returns the zero-based index of the first occurrence within the entire <see cref="DicomHl7TagMapCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="DicomHl7TagMap"/> to locate in the <see cref="DicomHl7TagMapCollection"/>.</param>
 /// <returns>
 /// The zero-based index of the first occurrence of value within the entire <see cref="DicomHl7TagMapCollection"/>,
 /// if found; otherwise, -1.
 /// </returns>
 public int IndexOf(DicomHl7TagMap value)
 {
     return(List.IndexOf(value));
 }
Пример #7
0
 /// <summary>
 /// Adds an object to the end of the <see cref="DicomHl7TagMapCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="DicomHl7TagMap"/> to be added to the end of the <see cref="DicomHl7TagMapCollection"/>.</param>
 /// <returns>The <see cref="DicomHl7TagMapCollection"/> index at which the value has been added.</returns>
 public int Add(DicomHl7TagMap value)
 {
     return(List.Add(value));
 }