Exemple #1
0
        public void SetBad()
        {
            var i1 = new Integer32(10);
            var i2 = new UInteger32(20);

            Assert.Throws <ArgumentException>(() => { i1.Set(i2); });
        }
Exemple #2
0
 /// <summary>Constructor</summary>
 /// <param name="uint32">The UInteger32 value to initialize the class with.</param>
 public TimeTicks(UInteger32 uint32)
     : base(uint32)
 {
     _asnType = (byte)SnmpConstants.SMI_TIMETICKS;
 }
 /// <summary>Constructor</summary>
 /// <param name="uint32">Value to initialize the class with.</param>
 public V2PartyClock(UInteger32 uint32)
     : base(uint32)
 {
     _asnType = SnmpConstants.SMI_PARTY_CLOCK;
 }
Exemple #4
0
 /// <summary>Constructor</summary>
 /// <param name="uint32">UInteger32 value</param>
 public Counter32(UInteger32 uint32)
     : base(uint32)
 {
     _asnType = SnmpConstants.SMI_COUNTER32;
 }
Exemple #5
0
 /// <summary> Constructs a new object with the value
 /// constrained in the UInteger32 object.
 /// </summary>
 /// <param name="uint32">The UInteger32 object to copy.
 /// </param>
 public Gauge32(UInteger32 uint32)
     : base(uint32)
 {
     _asnType = SnmpConstants.SMI_GAUGE32;
 }