Exemple #1
0
 public void SetSAMOptionalFieldCollection(SAMOptionalFieldCollection collection)
 {
     if (editableOptionalFieldCollection != null || readOnlyOptionalFieldCollection != null)
     {
         throw new Exception("Tried to set a SAMOptionalFieldCollection when a value already existed");
     }
     readOnlyOptionalFieldCollection = collection;
 }
Exemple #2
0
 /// <summary>
 /// Switch the collection type and make a new one.
 /// </summary>
 private void changeFromReadOnlyToEditableCollection()
 {
     if (readOnlyOptionalFieldCollection == null || editableOptionalFieldCollection != null)
     {
         throw new Exception("Cannot switch collections if there is no read only collection or already an editable one");
     }
     editableOptionalFieldCollection = readOnlyOptionalFieldCollection.ConvertToDictionary();
     readOnlyOptionalFieldCollection = null;
 }
 public void SetOptionalFieldCollection(SAMOptionalFieldCollection collection)
 {
     seqHeader.SetSAMOptionalFieldCollection(collection);
 }