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.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax 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:
BaseInfoSee Also