/// <summary> /// Convert a TlvParameter to a TlvString /// </summary> /// <returns>TlvString</returns> public static TlvString ToTlvString(TlvParameter parm) { TlvString stringParm = new TlvString(parm.Tag); stringParm.Data = parm.Data; return(stringParm); }
/// <summary> /// Convert a TlvParameter to a TlvShort /// </summary> /// <returns>TlvShort</returns> public static TlvShort ToTlvShort(TlvParameter parm) { TlvShort shortParm = new TlvShort(parm.Tag); shortParm.Data = parm.Data; return(shortParm); }
/// <summary> /// Convert a TlvParameter to a TlvInt /// </summary> /// <returns>TlvInt</returns> public static TlvInt ToTlvInt(TlvParameter parm) { TlvInt intParm = new TlvInt(parm.Tag); intParm.Data = parm.Data; return(intParm); }
/// <summary> /// Convert a TlvParameter to a TlvByte /// </summary> /// <returns>TlvByte</returns> public static TlvByte ToTlvByte(TlvParameter parm) { TlvByte byteParm = new TlvByte(parm.Tag); byteParm.Data = parm.Data; return(byteParm); }
/// <summary> /// Typed version of Equals. /// </summary> /// <param name="obj">TlvParameter</param> /// <returns>True/False</returns> public bool Equals(TlvParameter obj) { return(this.Tag == obj.Tag); }