public void Load(ReferenceDescription dictionary)
{
if (dictionary == null) throw new ArgumentNullException("dictionary");
NodeId dictionaryId = ExpandedNodeId.ToNodeId(dictionary.NodeId, m_session.NamespaceUris);
GetTypeSystem(dictionaryId);
byte[] schema = ReadDictionary(dictionaryId);
if (schema == null || schema.Length == 0)
{
throw ServiceResultException.Create(StatusCodes.BadUnexpectedError, "Cannot parse empty data dictionary.");
}
Validate(schema);
ReadDataTypes(dictionaryId);
m_dictionaryId = dictionaryId;
m_name = dictionary.ToString();
}