Beispiel #1
0
 private void WriteEntryType(CgtEntryType entryType)
 {
     if (entryCount <= 0)
     {
         throw new FileLoadException("No entry pending in this record");
     }
     writer.Write((byte)entryType);
 }
Beispiel #2
0
        private void ReadAndCheckEntryType(CgtEntryType expectedEntryType)
        {
            CgtEntryType entryType = ReadEntryType();

            if (entryType != expectedEntryType)
            {
                throw new FileLoadException(string.Format("{0} entry expected, but {1} entry found", expectedEntryType, entryType));
            }
        }
 private void ReadAndCheckEntryType(CgtEntryType expectedEntryType)
 {
     CgtEntryType entryType = ReadEntryType();
     if (entryType != expectedEntryType) {
         throw new FileLoadException(string.Format("{0} entry expected, but {1} entry found", expectedEntryType, entryType));
     }
 }
Beispiel #4
0
		private void WriteEntryType(CgtEntryType entryType) {
			if (entryCount <= 0) {
				throw new FileLoadException("No entry pending in this record");
			}
			writer.Write((byte)entryType);
		}