Exemple #1
0
 internal void AssertChunkType(BinaryChunkType type)
 {
     if (ChunkType != type)
     {
         throw new Exception("Expected " + BinaryFile.GetEnumName(type) + " ChunkType from input BinaryChunk");
     }
 }
Exemple #2
0
        public override string ToString()
        {
            string typeName = BinaryFile.GetEnumName(Format);
            string valueLabel;

            if (Value != null)
            {
                valueLabel = Value.ToString();
            }
            else
            {
                valueLabel = "?";
            }

            return(string.Join(" ", typeName, Name, '=', valueLabel));
        }
Exemple #3
0
 public override string ToString()
 {
     return('[' + BinaryFile.GetEnumName(Format) + "] " + Name);
 }