Skip to content

)~-0}

SettingsPropertyHelper.op_Implicit(SettingsPropertyHelper) operator

Defined in

Type: SettingsPropertyHelper Namespace: Akavache.Reactive.Settings.Core Assembly: Akavache.Settings.Reactive.dll

Applies to

net11.0, net11.0-maccatalyst27.2, net11.0-macos27.2, net11.0-windows10.0.19041, net11.0-android37.0, net11.0-ios27.2, net10.0, net10.0-windows10.0.19041, net10.0-android36.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net48, net471, net47, net472, net481

public static implicit operator T(SettingsPropertyHelper<T> helper)

View source

Summary: Implicit conversion from the helper to the underlying value type. Lets callers write bool enabled = settings.Enabled;, if (settings.Enabled) { ... }, or settings.IntValue == 5 without having to reach through Value. The conversion is equivalent to Value — same latest-cached value, same synchronous read.

Parameters

NameTypeDescription
helper[SettingsPropertyHelper](#Akavache.Reactive.Settings.Core.SettingsPropertyHelper-1)The helper to unwrap.

Returns: T

Remarks

The conversion does not fire in every context — in particular, generic constraints like Assert.That<T>(T) pin T to SettingsPropertyHelper itself, not the underlying type, so assertions need .Value or an explicit cast. Comparisons, conditions, and assignments into a typed variable all flow through naturally.