10 using System.Collections.Generic;
12 namespace Lextm.SharpSnmpLib.Mib.Elements
16 private readonly
string _module;
17 private readonly List<string> _types =
new List<string>();
23 while ((current = symbols.NextSymbol()) !=
Symbol.
From)
32 previous.AssertIsValidIdentifier();
39 previous.AssertIsValidIdentifier();
42 _module = symbols.NextSymbol().ToString().ToUpperInvariant();
47 get {
return _module; }
50 public IList<string> Types
52 get {
return _types; }
57 return string.Join(
", ", _types.ToArray()) +
" FROM " + _module;
static readonly Symbol Comma
static readonly Symbol EOL
override string ToString()
ImportsFrom(Symbol last, ISymbolEnumerator symbols)
static readonly Symbol From
override string ToString()
Returns a String that represents this Symbol.