1 using System; 2 using System.Collections.Generic; 3 4 namespace Lextm.SharpSnmpLib.Mib.Elements.Types 5 { 6 public class BitsType : BaseType 7 { 8 private ValueMap _map; 9 BitsType(IModule module, string name, ISymbolEnumerator symbols)10 public BitsType(IModule module, string name, ISymbolEnumerator symbols) 11 : base(module, name) 12 { 13 _map = Lexer.DecodeEnumerations(symbols); 14 } 15 16 public ValueMap Map 17 { 18 get { return _map; } 19 } 20 21 public string this[int value] 22 { 23 get { return _map[value]; } 24 } 25 } 26 } 27