Table of Contents

Class ILog_Properties

Namespace
ToSic.Lib.Logging
Assembly
ToSic.Sys.Core.dll

Extension methods for property getters and setters.

[InternalApi_DoNotUse_MayChangeWithoutNotice("Still experimental")]
public static class ILog_Properties
Inheritance
object
ILog_Properties

Methods

Getter<TProperty>(ILog, Func<TProperty>, bool, bool, string?, string?, string?, string?, int)

Short wrapper for PropertyGet calls which only return the value.

[InternalApi_DoNotUse_MayChangeWithoutNotice("2dm: Experimental, don't use yet")]
public static TProperty Getter<TProperty>(this ILog log, Func<TProperty> getter, bool timer = false, bool enabled = true, string? message = null, string? parameters = null, string? cPath = null, string? cName = null, int cLine = 0)

Parameters

log ILog
getter Func<TProperty>
timer bool
enabled bool
message string
parameters string
cPath string
cName string
cLine int

Returns

TProperty

Type Parameters

TProperty

Type of return value