namespace MessagePortUtils function ObserveFieldScopedExSafe(node as dynamic, field as string, port as dynamic) as void ' ObserveFieldScopedEx was added in 12.0 if FindMemberFunction(node, "ObserveFieldScopedEx") <> invalid ' bs:disable-next-line NO_OBSERVE_FIELD_SCOPED_EX node.ObserveFieldScopedEx(field, port) else node.ObserveFieldScoped(field, port) end if end function end namespace