Skip to content
Pavel Novikov edited this page Oct 21, 2015 · 24 revisions

Reinforced.Typings

T:Reinforced.Typings.AccessModifier

Represents member's access modifier


F:Reinforced.Typings.AccessModifier.Private

private


F:Reinforced.Typings.AccessModifier.Protected

protected


F:Reinforced.Typings.AccessModifier.Public

public


T:Reinforced.Typings.Attributes.IAutoexportSwitchAttribute

Interface containing base properties for some attributes


P:Reinforced.Typings.Attributes.IAutoexportSwitchAttribute.AutoExportMethods

When true, code for all methods will be automatically generated


P:Reinforced.Typings.Attributes.IAutoexportSwitchAttribute.AutoExportProperties

When true, code for all properties will be automatically generated


P:Reinforced.Typings.Attributes.IAutoexportSwitchAttribute.AutoExportFields

When true, code for all fields will be automatically generated


P:Reinforced.Typings.Attributes.IAutoexportSwitchAttribute.DefaultMethodCodeGenerator

Reference to code geenrator which will be applied to every method


P:Reinforced.Typings.Attributes.IAutoexportSwitchAttribute.AutoExportConstructors

When true, code for all constructors will be automatically generated


T:Reinforced.Typings.Attributes.INameOverrideAttribute

Configuration interface for members supporting names overriding


P:Reinforced.Typings.Attributes.INameOverrideAttribute.Name

Name override


T:Reinforced.Typings.Attributes.ICamelCaseableAttribute

Configuration interface for members supporting camelCasing from attribute


P:Reinforced.Typings.Attributes.ICamelCaseableAttribute.ShouldBeCamelCased

camelCase flag


T:Reinforced.Typings.Attributes.TsAddTypeReferenceAttribute

This attribute is used to add reference directive to file containing single TS class typing. It is only used while splitting generated type sto different files


M:Reinforced.Typings.Attributes.TsAddTypeReferenceAttribute.#ctor(System.Type)

Constructs new instance of TsAddTypeReferenceAttribute using referenced type

Name Description
type: Type reference

M:Reinforced.Typings.Attributes.TsAddTypeReferenceAttribute.#ctor(System.String)

Constructs new instance of TsAddTypeReferenceAttribute using referenced type

Name Description
rawPath: Raw reference

P:Reinforced.Typings.Attributes.TsAddTypeReferenceAttribute.Type

Type that should be referenced


P:Reinforced.Typings.Attributes.TsAddTypeReferenceAttribute.RawPath

Raw reference path that will be added to target file


T:Reinforced.Typings.Attributes.TsAttributeBase

Base for all attributes


P:Reinforced.Typings.Attributes.TsAttributeBase.CodeGeneratorType

Dummy function body generator If empty then it's being generated empty/return null body.


T:Reinforced.Typings.Attributes.TsClassAttribute

This attribute will export member as typescript class definition


T:Reinforced.Typings.Attributes.TsDeclarationAttributeBase

Base attribute for so-called compilation unit (class, enum, interface etc)


M:Reinforced.Typings.Attributes.TsDeclarationAttributeBase.#ctor

Constructs new instance of TsDeclarationAttributeBase


P:Reinforced.Typings.Attributes.TsDeclarationAttributeBase.IncludeNamespace

Place to corresponding namespace


P:Reinforced.Typings.Attributes.TsDeclarationAttributeBase.Name

Overrides name


P:Reinforced.Typings.Attributes.TsDeclarationAttributeBase.Namespace

Overrides namespace


M:Reinforced.Typings.Attributes.TsClassAttribute.#ctor

Constructs new instance of TsClassAttribute


P:Reinforced.Typings.Attributes.TsClassAttribute.AutoExportMethods

Export all methods automatically or not.


P:Reinforced.Typings.Attributes.TsClassAttribute.AutoExportProperties

Export all properties automatically or not.


P:Reinforced.Typings.Attributes.TsClassAttribute.AutoExportFields

Export all fields automatically or not.


P:Reinforced.Typings.Attributes.TsClassAttribute.DefaultMethodCodeGenerator

Reference to code geenrator which will be applied to every method


P:Reinforced.Typings.Attributes.TsClassAttribute.AutoExportConstructors

When true, code for all constructors will be automatically generated


T:Reinforced.Typings.Attributes.TsBaseParamAttribute

Denotes parameter name and constant value for constructor's :base call We need this attribute because it is programmatically impossible to determine :base call parameters via reflection. So in this case we need some help from user's side


M:Reinforced.Typings.Attributes.TsBaseParamAttribute.#ctor(System.String[])

Creates instance of TsBaseParamAttribute

Name Description
values: Set of TypeScript expressions to be supplied for super() call

P:Reinforced.Typings.Attributes.TsBaseParamAttribute.Values

Parameters for super() call Here should be stored TypeScript expressions


T:Reinforced.Typings.Attributes.TsEnumAttribute

Exports enum as TypeScript Enum


T:Reinforced.Typings.Attributes.TsFunctionAttribute

Overrides function export


T:Reinforced.Typings.Attributes.TsTypedMemberAttributeBase

Base attribute for class members and method parameters


T:Reinforced.Typings.Attributes.TsTypedAttributeBase

Base attribute for typed members/parameters


P:Reinforced.Typings.Attributes.TsTypedAttributeBase.Type

Overrides member type


P:Reinforced.Typings.Attributes.TsTypedAttributeBase.StrongType

Overrides member type with managed type


P:Reinforced.Typings.Attributes.TsTypedMemberAttributeBase.Name

Overrides member name


P:Reinforced.Typings.Attributes.TsTypedMemberAttributeBase.ShouldBeCamelCased

When true them member name will be camelCased regardless configuration setting


T:Reinforced.Typings.Attributes.TsGenericAttribute

Denotes type for generic attribute


M:Reinforced.Typings.Attributes.TsGenericAttribute.#ctor(System.String)

Constructs new instance of TsGenericAttribute

Name Description
type: Raw TypeScript type name

M:Reinforced.Typings.Attributes.TsGenericAttribute.#ctor(System.Type)

Constructs new instance of TsGenericAttribute

Name Description
strongType: Type to be resolved to TypeScript name during export

T:Reinforced.Typings.Attributes.TsIgnoreAttribute

Instructs DynTyping do not to export mentioned member


T:Reinforced.Typings.Attributes.TsInterfaceAttribute

Exports specified class or interface as typescript interface


M:Reinforced.Typings.Attributes.TsInterfaceAttribute.#ctor

Constructs new instance of TsInterfaceAttribute


P:Reinforced.Typings.Attributes.TsInterfaceAttribute.AutoI

Automatically appends I prefix if non-interfaces


P:Reinforced.Typings.Attributes.TsInterfaceAttribute.AutoExportMethods

Export all methods automatically or not.


P:Reinforced.Typings.Attributes.TsInterfaceAttribute.AutoExportProperties

Export all properties automatically or not.


T:Reinforced.Typings.Attributes.TsParameterAttribute

Overrides settings for exporting parameters


P:Reinforced.Typings.Attributes.TsParameterAttribute.DefaultValue

Specifies default value


T:Reinforced.Typings.Attributes.TsPropertyAttribute

Overrides property/field export settings


P:Reinforced.Typings.Attributes.TsPropertyAttribute.ForceNullable

Forces property to be a nullable


T:Reinforced.Typings.Attributes.TsReferenceAttribute

Specifies path of reference which required to be added to result .ts file


M:Reinforced.Typings.Attributes.TsReferenceAttribute.#ctor(System.String)

Constructs new instance of TsReferenceAttribute

Name Description
path: Path that should be written as file to reference tag

P:Reinforced.Typings.Attributes.TsReferenceAttribute.Path

Path to referenced TS file


T:Reinforced.Typings.Attributes.TsValueAttribute

Specifies exporting enum value


P:Reinforced.Typings.Attributes.TsValueAttribute.Name

Overrides enum value name


T:Reinforced.Typings.Fluent.ClassConfigurationBuilder`1

Export configuration builder for class


T:Reinforced.Typings.Fluent.TypeConfigurationBuilder`1

Configuration builder for type


T:Reinforced.Typings.Fluent.Interfaces.ITypeConfigurationBuilder

Technical interface for type (class/interface) configuration builder


T:Reinforced.Typings.Fluent.Interfaces.IReferenceConfigurationBuilder

Configuration interface for members supporting custom typescript-per-file references


P:Reinforced.Typings.Fluent.Interfaces.IReferenceConfigurationBuilder.References

Reference paths list


P:Reinforced.Typings.Fluent.Interfaces.ITypeConfigurationBuilder.ParametersConfiguration

Configurations for method parameters


P:Reinforced.Typings.Fluent.Interfaces.ITypeConfigurationBuilder.MembersConfiguration

Configurations for type members


P:Reinforced.Typings.Fluent.Interfaces.ITypeConfigurationBuilder.Type

Type is being configured


T:Reinforced.Typings.Fluent.Interfaces.IClassConfigurationBuilder

Technical interface for class configuration builder


T:Reinforced.Typings.Fluent.Interfaces.IExportConfiguration`1

Core fluent export configuration interface


P:Reinforced.Typings.Fluent.Interfaces.IExportConfiguration`1.AttributePrototype

Attribute prototype


T:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions

Extensions for configuration builders


M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperty2(Reinforced.Typings.Fluent.TypeConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}})

Include specified property to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
property: Property to include
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperty2(Reinforced.Typings.Fluent.InterfaceConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified property to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
property: Property to include
Name Description
----- ------
configuration: Configuration to be applied to selected property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperty2(Reinforced.Typings.Fluent.ClassConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified property to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
property: Property to include
Name Description
----- ------
configuration: Configuration to be applied to selected property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperties1(0,System.Collections.Generic.IEnumerable{System.Reflection.PropertyInfo},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified properties to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
properties: Properties to include
Name Description
----- ------
configuration: Configuration to be applied to each property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperties1(0,System.Func{System.Reflection.PropertyInfo,System.Boolean},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified properties to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
predicate: Predicate function for properties to include
Name Description
----- ------
configuration: Configuration to be applied to each property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperties1(0,System.Reflection.BindingFlags,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified properties to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
bindingFlags: BindingFlags describing properties to include
Name Description
----- ------
configuration: Configuration to be applied to each property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithAllProperties1(0,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include all properties to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
configuration: Configuration to be applied to each property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithPublicProperties1(0,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include all public properties to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
configuration: Configuration to be applied to each property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithField2(Reinforced.Typings.Fluent.TypeConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}})

Include specified field to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
field: Field to include
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithField2(Reinforced.Typings.Fluent.InterfaceConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified property to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
property: Property to include
Name Description
----- ------
configuration: Configuration to be applied to selected property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithField2(Reinforced.Typings.Fluent.ClassConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified property to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
property: Property to include
Name Description
----- ------
configuration: Configuration to be applied to selected property
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithFields1(0,System.Collections.Generic.IEnumerable{System.Reflection.FieldInfo},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified fields to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
fields: Fields to include
Name Description
----- ------
configuration: Configuration to be applied to each field
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithFields1(0,System.Func{System.Reflection.FieldInfo,System.Boolean},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified fields to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
predicate: Predicate function that should mathc for fields to include
Name Description
----- ------
configuration: Configuration to be applied to each field
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithAllFields1(0,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include all fields to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
configuration: Configuration to be applied to each field
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithPublicFields1(0,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include all public fields to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
configuration: Configuration to be applied to each field
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithFields1(0,System.Reflection.BindingFlags,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})

Include specified fields to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
bindingFlags: BindingFlags describing fields to include
Name Description
----- ------
configuration: Configuration to be applied to each field
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod2(Reinforced.Typings.Fluent.TypeConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}})

Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter

Name Description
tc: Configuration builder
Name Description
----- ------
method: Method to include
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod2(Reinforced.Typings.Fluent.InterfaceConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter

Name Description
tc: Configuration builder
Name Description
----- ------
method: Method to include
Name Description
----- ------
configuration: configuration to be applied to method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod2(Reinforced.Typings.Fluent.ClassConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Func{0,1}},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter

Name Description
tc: Configuration builder
Name Description
----- ------
method: Method to include
Name Description
----- ------
configuration: Configuration to be applied to method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod1(Reinforced.Typings.Fluent.TypeConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Action{``0}})

Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter

Name Description
tc: Configuration builder
Name Description
----- ------
method: Method to include
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod1(Reinforced.Typings.Fluent.InterfaceConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Action{``0}},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter

Name Description
tc: Configuration builder
Name Description
----- ------
method: Method to include
Name Description
----- ------
configuration: Configuration to be applied to method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod1(Reinforced.Typings.Fluent.ClassConfigurationBuilder{0},System.Linq.Expressions.Expression{System.Action{``0}},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter

Name Description
tc: Configuration builder
Name Description
----- ------
method: Method to include
Name Description
----- ------
configuration: Configuration to be applied to method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethods1(0,System.Func{System.Reflection.MethodInfo,System.Boolean},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include specified methods to resulting typing.

Name Description
tc: Configuration builder
Name Description
----- ------
predicate: Predicate function that should mathc for methods to include
Name Description
----- ------
configuration: Configuration to be applied to each method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethods1(0,System.Reflection.BindingFlags,System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include specified methods to resulting typing.

Name Description
tc: Configuration builder
Name Description
----- ------
bindingFlags: BindingFlags describing methods to include
Name Description
----- ------
configuration: Configuration to be applied to each method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethods1(0,System.Collections.Generic.IEnumerable{System.Reflection.MethodInfo},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include specified methods to resulting typing.

Name Description
tc: Configuration builder
Name Description
----- ------
methods: Methods to include
Name Description
----- ------
configuration: Configuration to be applied to each method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithAllMethods1(0,System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include all methods to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
configuration: Configuration to be applied to each method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithPublicMethods1(0,System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})

Include all methods to resulting typing

Name Description
tc: Configuration builder
Name Description
----- ------
configuration: Configuration to be applied to each method
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsInterface``1(Reinforced.Typings.Fluent.ConfigurationBuilder)

Includes specified type to resulting typing exported as interface

Name Description
builder: Configuration builder
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsInterfaces(Reinforced.Typings.Fluent.ConfigurationBuilder,System.Collections.Generic.IEnumerable{System.Type},System.Action{Reinforced.Typings.Fluent.Interfaces.IInterfaceConfigurationBuilder})

Includes specified types to resulting typing exported as interfaces

Name Description
builder: Configuration builder
Name Description
----- ------
types: Types to include
Name Description
----- ------
configuration: Configuration to be applied to each type
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsClass``1(Reinforced.Typings.Fluent.ConfigurationBuilder)

Includes specified type to resulting typing exported as TypeScript class

Name Description
builder: Configuration builder
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsClasses(Reinforced.Typings.Fluent.ConfigurationBuilder,System.Collections.Generic.IEnumerable{System.Type},System.Action{Reinforced.Typings.Fluent.Interfaces.IClassConfigurationBuilder})

Includes specified types to resulting typing exported as TypeScript classes

Name Description
builder: Configuration builder
Name Description
----- ------
types: Types to include
Name Description
----- ------
configuration: Configuration to be applied to each type
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsEnum``1(Reinforced.Typings.Fluent.ConfigurationBuilder)

Includes specified type to resulting typing exported as TypeScript enumeration

Name Description
builder: Configuration builder
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsEnums(Reinforced.Typings.Fluent.ConfigurationBuilder,System.Collections.Generic.IEnumerable{System.Type},System.Action{Reinforced.Typings.Fluent.Interfaces.IEnumConfigurationBuidler})

Includes specified types to resulting typing exported as TypeScript enumerations

Name Description
builder: Configuration builder
Name Description
----- ------
types: Types to include
Name Description
----- ------
configuration: Configuration to be applied to each type
Returns: Fluent

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.Value1(Reinforced.Typings.Fluent.EnumConfigurationBuilder{0},``0)

Retrieves configuration builder for particular enumeration value

Name Description
conf: Configuration builder
Name Description
----- ------
value: Enum value
Returns: Configuration builder

M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.Value(Reinforced.Typings.Fluent.Interfaces.IEnumConfigurationBuidler,System.String)

Retrieves configuration builder for particular enumeration value

Name Description
conf: Configuration builder
Name Description
----- ------
propertyName: String enum property name
Returns: Configuration builder

T:Reinforced.Typings.Fluent.EnumConfigurationBuilder`1

Configuration builder for Enum type


T:Reinforced.Typings.Fluent.Interfaces.IEnumConfigurationBuidler

Technical interface for enumeration configuration builder


P:Reinforced.Typings.Fluent.Interfaces.IEnumConfigurationBuidler.EnumType

Type of enumeration


P:Reinforced.Typings.Fluent.Interfaces.IEnumConfigurationBuidler.ValueExportConfigurations

Configurations for exported particular enumeration values


T:Reinforced.Typings.Fluent.EnumValueExportConfiguration

Configuration for enum value export configuration


T:Reinforced.Typings.Fluent.Interfaces.IIgnorable

Configuration for members that are supporting ignoring


P:Reinforced.Typings.Fluent.Interfaces.IIgnorable.Ignore

Ignore flag


T:Reinforced.Typings.Fluent.Interfaces.IInterfaceConfigurationBuilder

Technical interface for interface configuration builder


T:Reinforced.Typings.Fluent.ParameterConfigurationBuilder

Parameter configuration builder


T:Reinforced.Typings.Fluent.InterfaceConfigurationBuilder`1

Configuration builder for interface


T:Reinforced.Typings.Fluent.MethodExportConfiguration

Fluent configuration builder for exported methods


T:Reinforced.Typings.Fluent.PropertyExportConfiguration

Fluent configuration builder for exported properties


T:Reinforced.Typings.Fluent.LambdaHelpers

Set of helper reflection methods


M:Reinforced.Typings.Fluent.LambdaHelpers.ParsePropertyLambda2(System.Linq.Expressions.Expression{System.Func{0,``1}})

Parses supplied lambda expression and retrieves PropertyInfo from it

Name Description
lambda: Property Lambda expression
Returns: PropertyInfo referenced by this expression

M:Reinforced.Typings.Fluent.LambdaHelpers.ParsePropertyLambda(System.Linq.Expressions.LambdaExpression)

Parses supplied lambda expression and retrieves PropertyInfo from it

Name Description
lambda: Property Lambda expression
Returns: PropertyInfo referenced by this expression

M:Reinforced.Typings.Fluent.LambdaHelpers.ParseFieldLambda2(System.Linq.Expressions.Expression{System.Func{0,``1}})

Parses supplied lambda expression and retrieves PropertyInfo from it

Name Description
lambda: Property Lambda expression
Returns: PropertyInfo referenced by this expression

M:Reinforced.Typings.Fluent.LambdaHelpers.ParseFieldLambda(System.Linq.Expressions.LambdaExpression)

Parses supplied lambda expression and retrieves PropertyInfo from it

Name Description
lambda: Property Lambda expression
Returns: PropertyInfo referenced by this expression

M:Reinforced.Typings.Fluent.LambdaHelpers.ParseMethodLambda(System.Linq.Expressions.LambdaExpression)

Parses supplied lambda expression and retrieves PropertyInfo from it

Name Description
lambda: Property Lambda expression
Returns: PropertyInfo referenced by this expression

T:Reinforced.Typings.Fluent.Ts

Shortcut for method parameters mocking


M:Reinforced.Typings.Fluent.Ts.Parameter``1

Parameter mock for specified type

Returns: Mock


M:Reinforced.Typings.Fluent.Ts.Parameter``1(System.Action{Reinforced.Typings.Fluent.ParameterConfigurationBuilder})

Parameter mock with parameter configuration

Name Description
configuration: Fluent parameter configuration
Returns: Mock

T:Reinforced.Typings.Fluent.ConfigurationBuilder

Fluent configuration builder


T:Reinforced.Typings.Fluent.TypingsConfigurationExtensions

Extensions for fluent configuration


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Ignore1(0)

Ignores specified mambers during exporting


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsClassAttribute})

Specifies code generator for member


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsInterfaceAttribute})

Specifies code generator for member


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsEnumAttribute})

Specifies code generator for member


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsPropertyAttribute})

Specifies code generator for member


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsFunctionAttribute})

Specifies code generator for member


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsParameterAttribute})

Specifies code generator for member


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.AddReference1(0,System.String)

Adds reference directive to file containing single TS class typing. This method is only used while splitting generated types to different files

Name Description
configuration: Configurator
Name Description
----- ------
referenceFile: Path to referenced file

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.AddReference1(0,System.Type)

Adds reference directive to file containing single TS class typing. This method is only used while splitting generated types to different files

Name Description
configuration: Configurator
Name Description
----- ------
referencedType: Another generated type that should be referenced

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.OverrideName1(0,System.String)

Overrides name of specified member

Name Description
conf: Configuration
Name Description
----- ------
name: Custom name to be used

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.CamelCase1(0)

Forces member name to be camelCase

Name Description
conf: Configuration

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.DontIncludeToNamespace1(0,System.Boolean)

Configures exporter dont to export member to corresponding namespace


M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.OverrideNamespace1(0,System.String)

Configures exporter to export type to specified namespace

Name Description
conf: Configuration
Name Description
----- ------
nameSpace: Namespace name

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Type1(0,System.String)

Overrides member type name on export with textual string. Beware of using this setting because specified type may not present in your TypeScript code and this will lead to TypeScript compilation errors

Name Description
conf: Configurator
Name Description
----- ------
typeName: TS-friendly type name
Returns:

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Type``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsTypedAttributeBase})

Overrides member type on export with strong type. Feel free to use delegates here. It is very comfortable instead of regular TS functions syntax.

Name Description
conf: Configurator

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Type1(0,System.Type)

Overrides member type on export with strong type. Feel free to use delegates here. It is very comfortable instead of regular TS functions syntax.

Name Description
conf: Configurator
Name Description
----- ------
type: Type to override with
Returns:

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Returns1(0,System.String)

Overrides member type name on export with textual string. Beware of using this setting because specified type may not present in your TypeScript code and this will lead to TypeScript compilation errors. Actually this method does the same as .Type call. Just for your convinence

Name Description
conf: Configurator
Name Description
----- ------
typeName: TS-friendly type name
Returns:

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Returns``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsFunctionAttribute})

Overrides member type on export with strong type. Feel free to use delegates here. It is very comfortable instead of regular TS functions syntax. Actually this method does the same as .Type call. Just for your convinence

Name Description
conf: Configurator

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Returns1(0,System.Type)

Overrides member type on export with strong type. Feel free to use delegates here. It is very comfortable instead of regular TS functions syntax. Actually this method does the same as .Type call. Just for your convinence

Name Description
conf: Configurator
Name Description
----- ------
type: Type to override with
Returns:

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.ForceNullable1(0,System.Boolean)

Forces property to be a nullable. When set to true then property will be generated as [property]? : [type] with forcibly added question mark denoting nullable field.

Name Description
conf: Configuration
Name Description
----- ------
force: Force nullable or not

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.DefaultValue1(0,System.Object)

Sets parameter default value.

Name Description
conf: Configuration
Name Description
----- ------
value: Default value for parameter

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.AutoI1(0,System.Boolean)

Forces exporter to add I letter as interface prefix.

Name Description
conf: Configuration
Name Description
----- ------
auto: Add I automatically or not

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.AddReference(Reinforced.Typings.Fluent.ConfigurationBuilder,System.String)

Adds global reference to another typescript library

Name Description
conf: Table configurator
Name Description
----- ------
reference: Full path to .d.ts or .ts file
Returns: Fluent

M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.TryLookupDocumentationForAssembly(Reinforced.Typings.Fluent.ConfigurationBuilder,System.Reflection.Assembly,System.String)

Tries to find documentation .xml file for specified assembly and take it in account when generating documentaion

Name Description
conf: Table configurator
Name Description
----- ------
assmbly: Assembly which documentation should be included
Name Description
----- ------
documentationFileName: Override XMLDOC file name if differs (please include .xml extension)
Returns: Fluent

T:Reinforced.Typings.Xmldoc.DocumentationManager

XMLDOC documentation manager


M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteDocumentation(System.Reflection.MemberInfo,Reinforced.Typings.WriterWrapper)

Outputs documentation for class member

Name Description
member: Class member
Name Description
----- ------
sw: Text writer

M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteDocumentation(System.Reflection.MethodInfo,Reinforced.Typings.WriterWrapper)

Outputs documentation for method

Name Description
method: Method
Name Description
----- ------
sw: Text writer

M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteDocumentation(System.Reflection.ConstructorInfo,Reinforced.Typings.WriterWrapper)

Outputs documentation for constructor

Name Description
constructor: Constructor
Name Description
----- ------
sw: Text writer

M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteDocumentation(System.Type,Reinforced.Typings.WriterWrapper)

Outputs documentation for type

Name Description
type: Type
Name Description
----- ------
sw: Text writer

M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteComment(Reinforced.Typings.WriterWrapper,System.String)

Writes output comment with automatic multiline division

Name Description
sw: Output writer
Name Description
----- ------
comment: Comment (multiline allowed)

T:Reinforced.Typings.ExportSettings

TsExport exporting settings


P:Reinforced.Typings.ExportSettings.SourceAssemblies

The assemblies to extract typings from. Important! TsExporter do not perform any job for loading assemblies. It is left upon a calling side. That is because loading assemblies is highly dependent on calling side's AppDomain. TsExporter shouldnt handle all this shit


P:Reinforced.Typings.ExportSettings.Hierarchical

True to create project hierarchy in target folder. False to store generated typings in single file


P:Reinforced.Typings.ExportSettings.WriteWarningComment

True to write warning comment about auto-generated to every file. False to do not


P:Reinforced.Typings.ExportSettings.TargetDirectory

Target directory where to store generated typing files. This parameter is not used when Hierarcy is false


P:Reinforced.Typings.ExportSettings.TargetFile

Target file where to store generated sources. This parameter is not used when Hierarchy is true


P:Reinforced.Typings.ExportSettings.ExportPureTypings

If true, export will be performed in .d.ts manner (only typings, declare module etc). Otherwise, export will be performed to regulat .ts file


P:Reinforced.Typings.ExportSettings.RootNamespace

Specifies root namespace for hierarchical export. Helps to avoid creating redundant directories when hierarchical export.


P:Reinforced.Typings.ExportSettings.CamelCaseForMethods

Use camelCase for methods naming


P:Reinforced.Typings.ExportSettings.CamelCaseForProperties

Use camelCase for properties naming


P:Reinforced.Typings.ExportSettings.DocumentationFilePath

Path to assembly's XMLDOC file


P:Reinforced.Typings.ExportSettings.ConfigurationMethod

Fluent configuration method


P:Reinforced.Typings.ExportSettings.GenerateDocumentation

Enables or disables documentation generator


P:Reinforced.Typings.ExportSettings.Documentation

Documentation manager


P:Reinforced.Typings.ExportSettings.SpecialCase

There is a case when you are exporting base class as interface. It may lead to some unusual handling of generation, so I'm using this property to denote such cases and fix it in-place


T:Reinforced.Typings.Generators.ClassCodeGenerator

Default code generator for CLR type (class)


T:Reinforced.Typings.Generators.ITsCodeGenerator`1

TypeScript code generator interface


M:Reinforced.Typings.Generators.ITsCodeGenerator1.Generate(0,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary

Name Description
element: Element code to be generated to output
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

P:Reinforced.Typings.Generators.ITsCodeGenerator`1.Settings

Export settings


M:Reinforced.Typings.Generators.ClassCodeGenerator.Generate(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary

Name Description
element: Element code to be generated to output
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

M:Reinforced.Typings.Generators.ClassCodeGenerator.Export(System.String,System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)

Exports entire class to specified writer

Name Description
declType: Declaration type. Used in "export $gt;class< ... " line. This parameter allows switch it to "interface"
Name Description
----- ------
type: Exporting class type
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
swtch: Pass here type attribute inherited from IAutoexportSwitchAttribute

M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportMembers(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)

Exports all type members sequentially

Name Description
element: Type itself
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
swtch: Pass here type attribute inherited from IAutoexportSwitchAttribute

M:Reinforced.Typings.Generators.ClassCodeGenerator.HandleBaseClassExportingAsInterface(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)

Here you can customize what to export when base class is class but exporting as interface

Name Description
element: Type itself
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
swtch: Pass here type attribute inherited from IAutoexportSwitchAttribute

M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportFields(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)

Exports type fields

Name Description
element: Type itself
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
swtch: Pass here type attribute inherited from IAutoexportSwitchAttribute

M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportProperties(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)

Exports type properties

Name Description
element: Type itself
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
swtch: Pass here type attribute inherited from IAutoexportSwitchAttribute

M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportMethods(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)

Exports type methods

Name Description
element: Type itself
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
swtch: Pass here type attribute inherited from IAutoexportSwitchAttribute

M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportConstructors(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)

Exports type constructors

Name Description
element: Type itself
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
swtch: Pass here type attribute inherited from IAutoexportSwitchAttribute

M:Reinforced.Typings.Generators.ClassCodeGenerator.GenerateMembers1(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,System.Collections.Generic.IEnumerable{0})

Exports list of type members

Name Description
element: Exporting class
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
members: Type members to export

P:Reinforced.Typings.Generators.ClassCodeGenerator.Settings

Export settings


T:Reinforced.Typings.Generators.ConstructorCodeGenerator

Default code generator for constructor


T:Reinforced.Typings.Generators.MethodCodeGenerator

Default typescript code generator for method


M:Reinforced.Typings.Generators.MethodCodeGenerator.GetFunctionNameAndReturnType(System.Reflection.MethodInfo,Reinforced.Typings.TypeResolver,System.String@,System.String@)

Retrieves function name corresponding to method and return type. Fell free to override it.

Name Description
element: Method info
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
name: Resulting method name
Name Description
----- ------
type: Resulting return type name

M:Reinforced.Typings.Generators.MethodCodeGenerator.WriteMethodParameters(System.Reflection.MethodBase,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Writes all method's parameters to output writer.

Name Description
element: Method info
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

M:Reinforced.Typings.Generators.MethodCodeGenerator.GenerateBody(System.String,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,System.String)

Writes method body to output writer

Name Description
returnType: Method return type
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer
Name Description
----- ------
content: Content for non-void body

M:Reinforced.Typings.Generators.MethodCodeGenerator.WriteFunctionName(System.Boolean,Reinforced.Typings.AccessModifier,System.String,Reinforced.Typings.WriterWrapper,System.Boolean)

Writes method name, accessor and opening brace to output writer

Name Description
isStatic: Is method static or not
Name Description
----- ------
accessModifier: Access modifier for method
Name Description
----- ------
name: Method name
Name Description
----- ------
sw: Output writer
Name Description
----- ------
isInterfaceDecl: Is this method interface declaration or not (access modifiers prohibited on interface declaration methods)

M:Reinforced.Typings.Generators.MethodCodeGenerator.WriteRestOfDeclaration(System.String,Reinforced.Typings.WriterWrapper)

Writes rest of method declaration to output writer (after formal parameters list)

Name Description
type: Returning type name
Name Description
----- ------
sw: Output writer

M:Reinforced.Typings.Generators.MethodCodeGenerator.Generate(System.Reflection.MethodInfo,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary

Name Description
element: Element code to be generated to output
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

P:Reinforced.Typings.Generators.MethodCodeGenerator.Settings

Export settings


M:Reinforced.Typings.Generators.ConstructorCodeGenerator.Generate(System.Reflection.ConstructorInfo,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary

Name Description
element: Element code to be generated to output
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

T:Reinforced.Typings.Generators.EnumGenerator

Default code generator for enums


M:Reinforced.Typings.Generators.EnumGenerator.Generate(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary

Name Description
element: Element code to be generated to output
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

P:Reinforced.Typings.Generators.EnumGenerator.Settings

Export settings


T:Reinforced.Typings.Generators.FieldCodeGenerator

Default code generator for fields


T:Reinforced.Typings.Generators.PropertyCodeGenerator

Default code generator for properties


M:Reinforced.Typings.Generators.PropertyCodeGenerator.Generate(System.Reflection.MemberInfo,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary

Name Description
element: Element code to be generated to output
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

M:Reinforced.Typings.Generators.PropertyCodeGenerator.GetType(System.Reflection.MemberInfo)

Returns type of specified property. It is useful for overloads sometimes

Name Description
mi: Method Info
Returns: Property info type

P:Reinforced.Typings.Generators.PropertyCodeGenerator.Settings

Export settings


M:Reinforced.Typings.Generators.FieldCodeGenerator.GetType(System.Reflection.MemberInfo)

That's it - overriden GetType for property since properties and fields are exported to TypeScript almost same way.

Name Description
mi: Member info (Fields behind)
Returns: Field type

T:Reinforced.Typings.Generators.InterfaceCodeGenerator

Default code generator for interfaces. Derived from class generator since interfaces are very similar to classes in TypeScript


M:Reinforced.Typings.Generators.InterfaceCodeGenerator.Generate(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary

Name Description
element: Element code to be generated to output
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

T:Reinforced.Typings.Generators.NamespaceCodeGenerator

Default code generator for namespace


M:Reinforced.Typings.Generators.NamespaceCodeGenerator.Generate(System.Collections.Generic.IEnumerable{System.Type},System.String,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Generates namespace source code

Name Description
types: Types list
Name Description
----- ------
namespaceName: Namespace name
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

M:Reinforced.Typings.Generators.NamespaceCodeGenerator.WriteNamespaceBegin(System.String,Reinforced.Typings.WriterWrapper)

Writes to output file opening namespace declaration

Name Description
namespaceName: Namespace name
Name Description
----- ------
sw: Output writer

M:Reinforced.Typings.Generators.NamespaceCodeGenerator.WriteNamespaceEnd(System.String,Reinforced.Typings.WriterWrapper)

Writes to ouput file namespace closing

Name Description
namespaceName: Namespace name
Name Description
----- ------
sw: Output writer

P:Reinforced.Typings.Generators.NamespaceCodeGenerator.Settings

Export settings


T:Reinforced.Typings.Generators.ParameterCodeGenerator

Default code generator for method parameter


M:Reinforced.Typings.Generators.ParameterCodeGenerator.GetDefaultValue(System.Reflection.ParameterInfo,Reinforced.Typings.Attributes.TsParameterAttribute)

Returns default value for specified parameter info

Name Description
element: Parameter info
Name Description
----- ------
attr: Parameter attribute
Returns: Serialized to string default value of type that is exposed by mentioned parameter

M:Reinforced.Typings.Generators.ParameterCodeGenerator.Generate(System.Reflection.ParameterInfo,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)

Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary

Name Description
element: Element code to be generated to output
Name Description
----- ------
resolver: Type resolver
Name Description
----- ------
sw: Output writer

P:Reinforced.Typings.Generators.ParameterCodeGenerator.Settings

Export settings


T:Reinforced.Typings.Generators.SettingsExtensions

Various extensions for settings


M:Reinforced.Typings.Generators.SettingsExtensions.GetDeclarationFormat(Reinforced.Typings.ExportSettings,System.Type)

Returns declaration format for supplied Type (export/declare/nothing)

Name Description
settings: Export settings
Name Description
----- ------
element: Type
Returns: Declaration format - just supply your compilation unit type and name

M:Reinforced.Typings.Generators.SettingsExtensions.ConditionallyConvertMethodNameToCamelCase(Reinforced.Typings.ExportSettings,System.String)

Conditionally (based on settings) turns method name to camelCase

Name Description
settings: Settings object
Name Description
----- ------
regularName: Regular method name
Returns: Method name in camelCase if camelCasing enabled, initial string otherwise

M:Reinforced.Typings.Generators.SettingsExtensions.ConditionallyConvertPropertyNameToCamelCase(Reinforced.Typings.ExportSettings,System.String)

Conditionally (based on settings) turns property name to camelCase

Name Description
settings: Settings object
Name Description
----- ------
regularName: Regular property name
Returns: Property name in camelCase if camelCasing enabled, initial string otherwise

M:Reinforced.Typings.Generators.SettingsExtensions.CamelCaseFromAttribute(System.Reflection.MemberInfo,System.String)

Conditionally (based on attribute setting) turns member name to camelCase

Name Description
member: Member
Name Description
----- ------
regularName: Regular property name
Returns: Property name in camelCase if camelCasing enabled, initial string otherwise

M:Reinforced.Typings.Generators.SettingsExtensions.GetSourceAssemblyType(Reinforced.Typings.ExportSettings,System.String)

Retrieves type from source assemblies by name

Name Description
settings: Settings
Name Description
----- ------
typeName: Type name
Returns: Type (or null)

T:Reinforced.Typings.TsExporter

Facade for final TypeScript export. This class supplies assemblies names or assemblies itself as parameter and exports resulting TypeScript file to file or to string


M:Reinforced.Typings.TsExporter.#ctor(Reinforced.Typings.ExportSettings)

Constructs new instance of TypeScript exporter

Name Description
settings:

M:Reinforced.Typings.TsExporter.ExportAll(System.IO.TextWriter)

Exports TypeScript source to specified TextWriter according to settings

Name Description
sw: TextWriter

M:Reinforced.Typings.TsExporter.Export

Exports TypeScript source according to settings


M:Reinforced.Typings.TsExporter.ExportAll

Exports TypeScript source to string

Returns: String containig generated TypeScript source for specified assemblies


T:Reinforced.Typings.TypeExtensions

Useful extensions for reflection


F:Reinforced.Typings.TypeExtensions.MembersFlags

Binding flags for searching all members


M:Reinforced.Typings.TypeExtensions.IsNullable(System.Type)

Determines is type derived from Nullable or not

Name Description
t: Type
Returns: True if type is nullable value type. False otherwise

M:Reinforced.Typings.TypeExtensions.GetArg(System.Type)

Retrieves first type argument of type

Name Description
t: Type
Returns: First type argument

M:Reinforced.Typings.TypeExtensions.IsDictionary(System.Type)

Determines if type is Dictionary-like

Name Description
t: Type
Returns: True if type is derived from dictionary type

M:Reinforced.Typings.TypeExtensions.IsEnumerable(System.Type)

Determines if type is enumerable regardless of generic spec

Name Description
t: Type
Returns: True if type is enumerable (incl. array type). False otherwise.

M:Reinforced.Typings.TypeExtensions.IsNongenericEnumerable(System.Type)

Determines if supplied type is non-generic enumerable

Name Description
t: Type
Returns: True if supplied type is nongeneric enumerable. False otherwise

M:Reinforced.Typings.TypeExtensions.IsExportingAsInterface(System.Type)

Determines should type be exported as interface or not

Name Description
t: Type
Returns: True, if supplied type should be exported as interface. False otherwise

M:Reinforced.Typings.TypeExtensions.IsIgnored(System.Reflection.MemberInfo)

Determines if type member should be ignored for translation using corresponding Typings attribute

Name Description
t: Type member info
Returns: True if type member should be ignored, false otherwise

M:Reinforced.Typings.TypeExtensions.IsIgnored(System.Reflection.ParameterInfo)

Determines if parameter should be ignored for translation using corresponding Typings attribute

Name Description
t: Parameter info
Returns: True if parameter should be ignored, false otherwise

M:Reinforced.Typings.TypeExtensions.CleanGenericName(System.Type)

Removes generics postfix (all text after '`') from typename

Name Description
t: Type
Returns: Clean, genericless name

M:Reinforced.Typings.TypeExtensions.GetName(System.Reflection.ParameterInfo)

Retrieves parameter name from corresponding attribute. If attribute not present then takes parameter name via reflection

Name Description
element: Parameter info
Returns: Parameter name

M:Reinforced.Typings.TypeExtensions.IsDelegate(System.Type)

Determines if supplied type is delegate type

Name Description
t: Type
Returns: True, if supplied type is delegate, false otherwise

M:Reinforced.Typings.TypeExtensions.GetName(System.Type)

Retrieves type name from type itself or from corresponding Reinforced.Typings attribute

Name Description
t: Type
Returns: Type name

M:Reinforced.Typings.TypeExtensions.GetNamespace(System.Type,System.Boolean)

Retrieves type namespace from type itself or from corresponding Typings attribute

Name Description
t: Type
Name Description
----- ------
distinguishAutoTypes: Forces GetNamespace to return "-" for interfaces with IncludeInterface = false and null for anonymous types
Returns: Full-qualified namespace name

M:Reinforced.Typings.TypeExtensions.GetModifier(System.Reflection.FieldInfo)

Returns access modifier for specified field

Name Description
fieldInfo: Field
Returns: Access modifier string

M:Reinforced.Typings.TypeExtensions.GetModifier(System.Reflection.MethodInfo)

Returns access modifier for specified method

Name Description
methodInfo: Method
Returns: Access modifier string

M:Reinforced.Typings.TypeExtensions.GetModifier(System.Reflection.ConstructorInfo)

Returns access modifier for specified constructor

Name Description
constructorInfo: Constructor
Returns: Access modifier string

M:Reinforced.Typings.TypeExtensions.GetModifier(System.Reflection.PropertyInfo)

Returns access modifier for specified constructor

Name Description
propertyInfo: Property
Returns: Access modifier string

M:Reinforced.Typings.TypeExtensions.GetModifier(System.Reflection.MemberInfo)

Returns access modifier for specified type member

Name Description
member: Type member
Returns: Access modifier string

M:Reinforced.Typings.TypeExtensions.IsBounceProperty(System.Reflection.PropertyInfo)

Determines if propercy is "bounced". It means property with different accesor's access level

Name Description
propertyInfo: Property
Returns: True if property has different access levels for accessor

M:Reinforced.Typings.TypeExtensions.ToModifierText(Reinforced.Typings.AccessModifier)

Converts AccessModifier to corresponding TypeScript source text

Name Description
modifier: Access modifier
Returns: Access modifier text

M:Reinforced.Typings.TypeExtensions.ToModifierOmitPublic(Reinforced.Typings.AccessModifier)

Converts AccessModifier to corresponding TypeScript source text

Name Description
modifier: Access modifier
Returns: Access modifier text

F:Reinforced.Typings.TypeExtensions.TypeScriptMemberSearchPredicate

Search predicate to exclude ignored and compiler-generated items


T:Reinforced.Typings.TypeResolver

Type resolver. It is helper class to convert source types, members and parameter names to typescript ones


M:Reinforced.Typings.TypeResolver.#ctor(Reinforced.Typings.ExportSettings)

Constructs new type resolver


M:Reinforced.Typings.TypeResolver.GeneratorFor1(0,Reinforced.Typings.ExportSettings)

Reteieves code generator instance for specified type member. Also this method considers Typings attribute and instantiates generator specified there if necessary

Name Description
member: Type member info
Name Description
----- ------
settings: Export settings
Returns: Code generator for specified type member

M:Reinforced.Typings.TypeResolver.GeneratorFor(System.Reflection.ParameterInfo,Reinforced.Typings.ExportSettings)

Retrieves code generator for ParameterInfo (since ParameterInfo does not derive from MemberInfo). Also this method considers Typings attribute and instantiates generator specified there if necessary

Name Description
member: Parameter info
Name Description
----- ------
settings: Export settings
Returns: Code generator for parameter info

M:Reinforced.Typings.TypeResolver.GeneratorFor(System.Type,Reinforced.Typings.ExportSettings)

Retrieves code generator for specified type Also this method considers Typings attribute and instantiates generator specified there if necessary

Name Description
member: Type info
Name Description
----- ------
settings: Export settings
Returns: Code generator for specified type

M:Reinforced.Typings.TypeResolver.GeneratorForNamespace(Reinforced.Typings.ExportSettings)

Retrieves code generator for namespaces

Returns:


M:Reinforced.Typings.TypeResolver.ResolveTypeName(System.Type)

Returns typescript-friendly type name for specified type. This method successfully handles dictionaries, IEnumerables, arrays, another TsExport-ed types, void, delegates, most of CLR built-in types, parametrized types etc. It also considers Ts*-attributes while resolving type names If it cannot handle anything then it will return "any"

Name Description
t: Specified type
Returns: Typescript-friendly type name

Clone this wiki locally