IniReaderExtOnT Method

Like .As>T<(x) and .Like(x) but works also for unknown (null) entries.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static T On<T>(
	this SimpleIniFileEntry item,
	T fallback = null
)

Parameters

item  SimpleIniFileEntry
entry.
fallback  T  (Optional)
fallback value with also determines type.

Type Parameters

T
type of return value inferred from fallback.

Return Value

T
value of item or fallback.

Usage Note

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).

Remarks

needs IniReaderExt loaded:
C#
using static IniReaderExt;

See Also