34 lines
878 B
C#
34 lines
878 B
C#
|
// /**
|
|||
|
// * File: NullValue.cs
|
|||
|
// * Author: haraldwolff
|
|||
|
// *
|
|||
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
|||
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
|||
|
// *
|
|||
|
// *
|
|||
|
// **/
|
|||
|
using System;
|
|||
|
namespace ln.snmp.types
|
|||
|
{
|
|||
|
public class NullValue : Variable
|
|||
|
{
|
|||
|
public static NullValue Instance = new NullValue();
|
|||
|
|
|||
|
byte[] value = new byte[0];
|
|||
|
|
|||
|
private NullValue()
|
|||
|
:base(new Identifier(IdentifierClass.UNIVERSAL,false,0x05))
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public override byte[] Bytes { get => value;
|
|||
|
set
|
|||
|
{
|
|||
|
if (value.Length > 0)
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
}
|
|||
|
public override object Value { get => null; set => throw new NotImplementedException(); }
|
|||
|
}
|
|||
|
}
|