Skip to content

M_CommandLine_Core_InstanceBuilder_BuildImmutable__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

InstanceBuilder.BuildImmutable(T) Method

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

private static T BuildImmutable<T>(
	Type typeInfo,
	Maybe<Func<T>> factory,
	IEnumerable<SpecificationProperty> specProps,
	IEnumerable<SpecificationProperty> specPropsWithValue,
	List<Error> setPropertyErrors
)

VB

Private Shared Function BuildImmutable(Of T) ( 
	typeInfo As Type,
	factory As Maybe(Of Func(Of T)),
	specProps As IEnumerable(Of SpecificationProperty),
	specPropsWithValue As IEnumerable(Of SpecificationProperty),
	setPropertyErrors As List(Of Error)
) As T

C++

private:
generic<typename T>
static T BuildImmutable(
	Type^ typeInfo, 
	Maybe<Func<T>^>^ factory, 
	IEnumerable<SpecificationProperty^>^ specProps, 
	IEnumerable<SpecificationProperty^>^ specPropsWithValue, 
	List<Error^>^ setPropertyErrors
)

F#

private static member BuildImmutable : 
        typeInfo : Type * 
        factory : Maybe<Func<'T>> * 
        specProps : IEnumerable<SpecificationProperty> * 
        specPropsWithValue : IEnumerable<SpecificationProperty> * 
        setPropertyErrors : List<Error> -> 'T 

Parameters

 

typeInfo
Type: System.Type
factory
Type: CSharpx.Maybe(Func(T))
specProps
Type: System.Collections.Generic.IEnumerable(SpecificationProperty)
specPropsWithValue
Type: System.Collections.Generic.IEnumerable(SpecificationProperty)
setPropertyErrors
Type: System.Collections.Generic.List(Error)

Type Parameters

 

T

Return Value

Type: T

See Also

Reference

InstanceBuilder Class
CommandLine.Core Namespace

Clone this wiki locally