Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 4f8444a

Browse files
committed
Remove implicit casting
1 parent 943d408 commit 4f8444a

File tree

1 file changed

+0
-20
lines changed
  • Bindings/Packages/com.virtualmaker.bindings/Runtime

1 file changed

+0
-20
lines changed

Bindings/Packages/com.virtualmaker.bindings/Runtime/Property.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ public void SetValueWithoutNotify(TValue value)
5050
_value = value;
5151
}
5252

53-
public static implicit operator TValue(Property<TValue> property)
54-
{
55-
if (property != null)
56-
{
57-
return property.Value;
58-
}
59-
60-
return default;
61-
}
62-
6353
public event Action<TValue> OnChange;
6454

6555
public void NotifyChanged() => OnChange?.Invoke(Value);
@@ -75,16 +65,6 @@ public event Action<TDerived> OnChange
7565
remove => _property.OnChange -= value;
7666
}
7767

78-
public static implicit operator TDerived(Derived<TDerived> derived)
79-
{
80-
if (derived != null)
81-
{
82-
return derived.Value;
83-
}
84-
85-
return default;
86-
}
87-
8868
private Derived() { }
8969

9070
public static Derived<TDerived> From<TValue>(IProperty<TValue> property, Func<TValue, TDerived> func)

0 commit comments

Comments
 (0)