Click or drag to resize
InfoHelperEnsureInfo Method
Ensures that the info variable is loaded with the given info. Caches the null value as BaseInfo.Empty info if the value wasn't provided, and returns null in that case.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public static BaseInfo EnsureInfo(
	ref BaseInfo variable,
	Func<BaseInfo> getMethod
)

Parameters

variable
Type: CMS.DataEngineBaseInfo
Variable to use for the value
getMethod
Type: SystemFuncBaseInfo
Method to get the value

Return Value

Type: BaseInfo
See Also