// /** // * 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; using ln.snmp.asn1; namespace ln.snmp.types { public class NullValue : Variable { public static NullValue Instance = new NullValue(); byte[] value = new byte[0]; public 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(); } public override string ToString() { return "[Null]"; } } }