/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1Tag">The asn1 tag.</param> /// <param name="constructType">Type of the construct.</param> /// <param name="asn1Class">The asn1 class.</param> public Asn1TagInfo(Asn1Tag asn1Tag, ConstructType constructType, Asn1Class asn1Class) { Asn1ClassType = asn1Class; Asn1ConstructType = constructType; Asn1SnmpTagType = Asn1SnmpTag.NotSnmpData; Asn1TagType = asn1Tag; }
/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1SnmpTag">The asn1 SNMP tag.</param> /// <param name="constructType">Type of the construct.</param> public Asn1TagInfo(Asn1SnmpTag asn1SnmpTag, ConstructType constructType) { Asn1ClassType = Asn1Class.Application; Asn1ConstructType = constructType; Asn1SnmpTagType = asn1SnmpTag; Asn1TagType = Asn1Tag.NotAsn1Data; }
/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1Tag">The asn1 tag.</param> /// <param name="constructType">Type of the construct.</param> public Asn1TagInfo(Asn1Tag asn1Tag, ConstructType constructType) { Asn1ClassType = Asn1Class.Universal; Asn1ConstructType = constructType; Asn1SnmpTagType = Asn1SnmpTag.NotSnmpData; Asn1TagType = asn1Tag; }
/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1Tag">The asn1 tag.</param> /// <param name="constructType">Type of the construct.</param> public Asn1TagInfo(Asn1Tag asn1Tag, ConstructType constructType) { this.Asn1ClassType = Asn1Class.Universal; this.Asn1ConstructType = constructType; this.Asn1SnmpTagType = Asn1SnmpTag.NotSnmpData; this.Asn1TagType = asn1Tag; }
/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1SnmpTag">The asn1 SNMP tag.</param> /// <param name="constructType">Type of the construct.</param> public Asn1TagInfo(Asn1SnmpTag asn1SnmpTag, ConstructType constructType) { this.Asn1ClassType = Asn1Class.Application; this.Asn1ConstructType = constructType; this.Asn1SnmpTagType = asn1SnmpTag; this.Asn1TagType = Asn1Tag.NotAsn1Data; }
/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1Class">The asn1 class.</param> /// <param name="constructType">Type of the construct.</param> /// <param name="tagType">Type of the tag.</param> internal Asn1TagInfo(int asn1Class, int constructType, int tagType) { Asn1ClassType = (Asn1Class)asn1Class; Asn1ConstructType = (ConstructType)constructType; if (Asn1ClassType == Asn1Class.Application) { Asn1SnmpTagType = (Asn1SnmpTag)tagType; Asn1TagType = Asn1Tag.NotAsn1Data; } else { Asn1TagType = (Asn1Tag)tagType; Asn1SnmpTagType = Asn1SnmpTag.NotSnmpData; } }
/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1SnmpTag">The asn1 SNMP tag.</param> public Asn1TagInfo(Asn1SnmpTag asn1SnmpTag) : this(asn1SnmpTag, ConstructType.Primitive) { }
public Asn1TypeAttribute(Asn1SnmpTag asn1SnmpTag, ConstructType constructType) { this.tagInfo = new Asn1TagInfo(asn1SnmpTag, constructType); }
public Asn1TypeAttribute(Asn1SnmpTag asn1SnmpTag) { this.tagInfo = new Asn1TagInfo(asn1SnmpTag); }
/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1Class">The asn1 class.</param> /// <param name="constructType">Type of the construct.</param> /// <param name="tagType">Type of the tag.</param> internal Asn1TagInfo(int asn1Class, int constructType, int tagType) { this.Asn1ClassType = (Asn1Class)asn1Class; this.Asn1ConstructType = (ConstructType)constructType; if (this.Asn1ClassType == Asn1Class.Application) { this.Asn1SnmpTagType = (Asn1SnmpTag)tagType; this.Asn1TagType = Asn1Tag.NotAsn1Data; } else { this.Asn1TagType = (Asn1Tag)tagType; this.Asn1SnmpTagType = Asn1SnmpTag.NotSnmpData; } }
/// <summary> /// Initializes a new instance of the <see cref="Asn1TagInfo"/> struct. /// </summary> /// <param name="asn1Tag">The asn1 tag.</param> /// <param name="constructType">Type of the construct.</param> /// <param name="asn1Class">The asn1 class.</param> public Asn1TagInfo(Asn1Tag asn1Tag, ConstructType constructType, Asn1Class asn1Class) { this.Asn1ClassType = asn1Class; this.Asn1ConstructType = constructType; this.Asn1SnmpTagType = Asn1SnmpTag.NotSnmpData; this.Asn1TagType = asn1Tag; }