IniReaderExtOnT Method
Like .As>T<(x) and
.Like(x) but works also for unknown (null) entries.
Namespace: Karamba.UtilitiesAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public static T On<T>(
this SimpleIniFileEntry item,
T fallback = null
)
<ExtensionAttribute>
Public Shared Function On(Of T) (
item As SimpleIniFileEntry,
Optional fallback As T = Nothing
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T On(
SimpleIniFileEntry^ item,
T fallback = nullptr
)
[<ExtensionAttribute>]
static member On :
item : SimpleIniFileEntry *
?fallback : 'T
(* Defaults:
let _fallback = defaultArg fallback null
*)
-> 'T
- item SimpleIniFileEntry
- entry.
- fallback T (Optional)
- fallback value with also determines type.
- T
- type of return value inferred from fallback.
Tvalue of item or fallback.In Visual Basic and C#, you can call this method as an instance method on any object of type
SimpleIniFileEntry. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
needs IniReaderExt loaded:
using static IniReaderExt;