ForTypeInstance(IMemberOrNamedType, INamedType)
Returns a representation of the current IMemberOrNamedType, but for a different generic instance of the declaring type.
Declaration
public static IMemberOrNamedType ForTypeInstance(this IMemberOrNamedType declaration, INamedType typeInstance)Parameters
| Type | Name | Description |
|---|---|---|
| IMemberOrNamedType | declaration | The member or nested type to represent in a different type instance. |
| INamedType | typeInstance | The generic instance of the declaring type. |
Returns
| Type | Description |
|---|---|
| IMemberOrNamedType | A representation of the member or nested type within the specified type instance. |
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 | The nested type to represent in a different type instance. |
| INamedType | typeInstance | The generic instance of the declaring type. |
Returns
| Type | Description |
|---|---|
| INamedType | A representation of the nested type within the specified type instance. |
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 | The field to represent in a different type instance. |
| INamedType | typeInstance | The generic instance of the declaring type. |
Returns
| Type | Description |
|---|---|
| IField | A representation of the field within the specified type instance. |
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 | The method to represent in a different type instance. |
| INamedType | typeInstance | The generic instance of the declaring type. |
Returns
| Type | Description |
|---|---|
| IMethod | A representation of the method within the specified type instance. |
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 | The property to represent in a different type instance. |
| INamedType | typeInstance | The generic instance of the declaring type. |
Returns
| Type | Description |
|---|---|
| IProperty | A representation of the property within the specified type instance. |
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 | The event to represent in a different type instance. |
| INamedType | typeInstance | The generic instance of the declaring type. |
Returns
| Type | Description |
|---|---|
| IEvent | A representation of the event within the specified type instance. |
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 | The constructor to represent in a different type instance. |
| INamedType | typeInstance | The generic instance of the declaring type. |
Returns
| Type | Description |
|---|---|
| IConstructor | A representation of the constructor within the specified type instance. |