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#

privatestaticTBuildImmutable<T>(TypetypeInfo,Maybe<Func<T>>factory,IEnumerable<SpecificationProperty>specProps,IEnumerable<SpecificationProperty>specPropsWithValue,List<Error>setPropertyErrors)

VB

PrivateSharedFunctionBuildImmutable(OfT)(typeInfoAsType,factoryAsMaybe(OfFunc(OfT)),specPropsAsIEnumerable(OfSpecificationProperty),specPropsWithValueAsIEnumerable(OfSpecificationProperty),setPropertyErrorsAsList(OfError))AsT

C++

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

F#

privatestatic memberBuildImmutable: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