AsmResolver.BinaryStreamReaderExtensions.ReadIndex C# (CSharp) Метод

ReadIndex() публичный статический Метод

Reads an index with the specified index size of the stream.
public static ReadIndex ( this reader, IndexSize size ) : uint
reader this The reader to use for reading the data.
size IndexSize The size of the index.
Результат uint
        public static uint ReadIndex(this IBinaryStreamReader reader, IndexSize size)
        {
            switch (size)
            {
                case IndexSize.Short:
                    return reader.ReadUInt16();
                case IndexSize.Long:
                    return reader.ReadUInt32();
                default:
                    throw new ArgumentOutOfRangeException("size");
            }
        }