Open sandboxFocus

Method ForTypeInstance

ForTypeInstance(IMemberOrNamedType, INamedType)

Declaration
public static IMemberOrNamedType ForTypeInstance(this IMemberOrNamedType declaration, INamedType typeInstance)
Parameters
Type Name Description
IMemberOrNamedType declaration
INamedType typeInstance
Returns
Type Description
IMemberOrNamedType

ForTypeInstance(INamedType, INamedType)

Returns a representation of the current nested INamedType, but for a different generic instance of the declaring type.

Declaration
public static INamedType ForTypeInstance(this INamedType declaration, INamedType typeInstance)
Parameters
Type Name Description
INamedType declaration
INamedType typeInstance
Returns
Type Description
INamedType

ForTypeInstance(IField, INamedType)

Returns a representation of the current IField, but for a different generic instance of the declaring type.

Declaration
public static IField ForTypeInstance(this IField declaration, INamedType typeInstance)
Parameters
Type Name Description
IField declaration
INamedType typeInstance
Returns
Type Description
IField

ForTypeInstance(IMethod, INamedType)

Returns a representation of the current IMethod, but for a different generic instance of the declaring type.

Declaration
public static IMethod ForTypeInstance(this IMethod declaration, INamedType typeInstance)
Parameters
Type Name Description
IMethod declaration
INamedType typeInstance
Returns
Type Description
IMethod

ForTypeInstance(IProperty, INamedType)

Returns a representation of the current IProperty, but for a different generic instance of the declaring type.

Declaration
public static IProperty ForTypeInstance(this IProperty declaration, INamedType typeInstance)
Parameters
Type Name Description
IProperty declaration
INamedType typeInstance
Returns
Type Description
IProperty

ForTypeInstance(IEvent, INamedType)

Returns a representation of the current IEvent, but for a different generic instance of the declaring type.

Declaration
public static IEvent ForTypeInstance(this IEvent declaration, INamedType typeInstance)
Parameters
Type Name Description
IEvent declaration
INamedType typeInstance
Returns
Type Description
IEvent

ForTypeInstance(IConstructor, INamedType)

Returns a representation of the current IConstructor, but for a different generic instance of the declaring type.

Declaration
public static IConstructor ForTypeInstance(this IConstructor declaration, INamedType typeInstance)
Parameters
Type Name Description
IConstructor declaration
INamedType typeInstance
Returns
Type Description
IConstructor