Click or drag to resize
Llvm.NET LogoExtensiblePropertyDescriptorTGetValueFrom Method (IExtensiblePropertyContainer, FuncT)

[This is preliminary documentation and is subject to change.]

Gets a value for the property from the container

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public T GetValueFrom(
	IExtensiblePropertyContainer container,
	Func<T> lazyDefaultFactory
)

Parameters

container
Type: Llvm.NETIExtensiblePropertyContainer
container
lazyDefaultFactory
Type: SystemFuncT
default value factory delegate to create the default value if the value is not yet present as an extended property

Return Value

Type: T
Value retrieved from the property or default value created by lazyDefaultFactory if it wasn't found
Remarks
If the value didn't exist a new value created by calling with lazyDefaultFactory is added to the container
See Also