Пример #1
0
 private void WriteEntryType(CgtEntryType entryType)
 {
     if (entryCount <= 0)
     {
         throw new FileLoadException("No entry pending in this record");
     }
     writer.Write((byte)entryType);
 }
Пример #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));
            }
        }
Пример #3
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));
     }
 }
Пример #4
0
		private void WriteEntryType(CgtEntryType entryType) {
			if (entryCount <= 0) {
				throw new FileLoadException("No entry pending in this record");
			}
			writer.Write((byte)entryType);
		}