Skip to content
James edited this page Jun 3, 2020 · 3 revisions

Unit

SuccincT.Functional.Unit

Singleton value class that encapsulates the unit value used by Succinc<T> to convert between Action and Func expressions.


Unit.unit The sole implemented value of Unit. This value is returned by the ToUnitFunc methods. It is unlikely that you'll need to access this value directly, but it's publicly exposed in case you do.

Unit.Ignore<T>(T anything) - As of v4, this method has been removed as it's now possible (from C# 7) to just use a discard for this: _ = anything;