aboutsummaryrefslogtreecommitdiffstats
path: root/examples/QtAzureIoT/common/PropertySet.cs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/QtAzureIoT/common/PropertySet.cs')
-rw-r--r--examples/QtAzureIoT/common/PropertySet.cs27
1 files changed, 0 insertions, 27 deletions
diff --git a/examples/QtAzureIoT/common/PropertySet.cs b/examples/QtAzureIoT/common/PropertySet.cs
deleted file mode 100644
index 2744a5c..0000000
--- a/examples/QtAzureIoT/common/PropertySet.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-/***************************************************************************************************
- Copyright (C) 2023 The Qt Company Ltd.
- SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-***************************************************************************************************/
-
-using System.ComponentModel;
-
-namespace QtAzureIoT.Utils
-{
- public class PropertySet : INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected void NotifyPropertyChanged(string propertyName)
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
-
- protected void SetProperty<T>(ref T currentValue, T newValue, string name)
- {
- if (newValue.Equals(currentValue))
- return;
- currentValue = newValue;
- NotifyPropertyChanged(name);
- }
- }
-}