Opc.Ua.TypeTable.IsEncodingFor C# (CSharp) Method

IsEncodingFor() public method

public IsEncodingFor ( Opc.Ua.NodeId expectedTypeId, Opc.Ua.ExtensionObject value ) : bool
expectedTypeId Opc.Ua.NodeId
value Opc.Ua.ExtensionObject
return bool
        public bool IsEncodingFor(NodeId expectedTypeId, ExtensionObject value)
        {
            // no match on null values.
            if (value == null)
            {
                return false;
            }

            // may still match if the extension type is an encoding for the expected type.
            if (IsEncodingOf(value.TypeId, expectedTypeId))
            {
                return true;
            }

            // no match.
            return false;
        }

Same methods

TypeTable::IsEncodingFor ( Opc.Ua.NodeId expectedTypeId, object value ) : bool