本文整理汇总了C#中Lextm.SharpSnmpLib.Mib.Lexer.ParseOidValue方法的典型用法代码示例。如果您正苦于以下问题:C# Lexer.ParseOidValue方法的具体用法?C# Lexer.ParseOidValue怎么用?C# Lexer.ParseOidValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lextm.SharpSnmpLib.Mib.Lexer
的用法示例。
在下文中一共展示了Lexer.ParseOidValue方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ObjectType
public ObjectType(string module, IList<Symbol> header, Lexer lexer)
{
_module = module;
_name = header[0].ToString();
_properties = ParseProperties(header);
lexer.ParseOidValue(out _parent, out _value);
}
示例2: ObjectIdentity
/// <summary>
/// Creates a <see cref="ObjectIdentity"/>.
/// </summary>
/// <param name="module">Module name</param>
/// <param name="header">Header</param>
/// <param name="lexer">Lexer</param>
public ObjectIdentity(string module, IList<Symbol> header, Lexer lexer)
{
_module = module;
_name = header[0].ToString();
lexer.ParseOidValue(out _parent, out _value);
if (_parent == "0")
{
_parent = "ccitt";
}
}
示例3: TestMethod
public void TestMethod()
{
Lexer lexer = new Lexer();
lexer.Parse(new StringReader("{ iso org(3) dod(6) 1 }"));
string parent;
uint value;
lexer.ParseOidValue(out parent, out value);
Assert.AreEqual("iso.org(3).dod(6)", parent);
Assert.AreEqual(1, value);
}
示例4: TestMethod1
public void TestMethod1()
{
Lexer lexer = new Lexer();
lexer.Parse(new StringReader("{ iso(1) std(0) iso8802(8802) ieee802dot1(1)" + Environment.NewLine +
" ieee802dot1mibs(1) 1 }"));
string parent;
uint value;
lexer.ParseOidValue(out parent, out value);
Assert.AreEqual("iso(1).std(0).iso8802(8802).ieee802dot1(1).ieee802dot1mibs(1)", parent);
Assert.AreEqual(1, value);
}
示例5: ModuleCompliance
public ModuleCompliance(string module, IList<Symbol> header, Lexer lexer)
{
_module = module;
_name = header[0].ToString();
lexer.ParseOidValue(out _parent, out _value);
}
示例6: NotificationType
public NotificationType(string module, IList<Symbol> header, Lexer lexer)
{
_module = module;
_name = header[0].ToString();
lexer.ParseOidValue(out _parent, out _value);
}
示例7: AgentCapabilities
/// <summary>
/// Creates an <see cref="AgentCapabilities"/> instance.
/// </summary>
/// <param name="module"></param>
/// <param name="header"></param>
/// <param name="lexer"></param>
public AgentCapabilities(string module, IList<Symbol> header, Lexer lexer)
{
_module = module;
_name = header[0].ToString();
lexer.ParseOidValue(out _parent, out _value);
}
示例8: ObjectGroup
public ObjectGroup(string module, IList<Symbol> header, Lexer lexer)
{
_module = module;
_name = header[0].ToString();
lexer.ParseOidValue(out _parent, out _value);
}