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; }