Example #1
0
        /// <summary>
        /// Creates a new instance of the TLV description described by <paramref name="tlvDesc"/>
        /// </summary>
        /// <param name="tlvDesc">Description of the tag</param>
        /// <returns>A new instance of the TLV object</returns>
        public static AbstractTlvObject CreateInstance(TlvDescription tlvDesc)
        {
            var dll = "";

            if (tlvDesc.DllName != null)
            {
                dll = (tlvDesc.PathToDll ?? String.Empty) + tlvDesc.DllName;
            }
            return(AssemblyLoader.CreateInstance <AbstractTlvObject>(dll, tlvDesc.ClassName));
        }
Example #2
0
 /// <summary>
 /// Adds a description to the known TLV representation
 /// </summary>
 /// <param name="tlvDesc">TLV description for the tlvDesc to add</param>
 public void Add(TlvDescription tlvDesc)
 {
     _descByHexa.Add(tlvDesc.HexaValue, tlvDesc);
 }