Class MethodInfoCache
Represents a Method Info Cache.
Namespace: Swan.Reflection
Syntax
public class MethodInfoCache : ConcurrentDictionary<string, MethodInfo>
Methods
Retrieve(Type, String)
Retrieves the specified type.
Declaration
public MethodInfo Retrieve(Type type, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type. |
| String | name | The name. |
Returns
| Type | Description |
|---|---|
| MethodInfo | The cached MethodInfo. |
Retrieve(Type, String, String, Type[])
Retrieves the specified type.
Declaration
public MethodInfo Retrieve(Type type, string name, string alias, params Type[] types)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type. |
| String | name | The name. |
| String | alias | The alias. |
| Type[] | types | The types. |
Returns
| Type | Description |
|---|---|
| MethodInfo | The cached MethodInfo. |
Retrieve(Type, String, Type[])
Retrieves the specified type.
Declaration
public MethodInfo Retrieve(Type type, string name, params Type[] types)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type. |
| String | name | The name. |
| Type[] | types | The types. |
Returns
| Type | Description |
|---|---|
| MethodInfo | An array of the properties stored for the specified type. |
Retrieve<T>(String)
Retrieves the specified name.
Declaration
public MethodInfo Retrieve<T>(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | The name. |
Returns
| Type | Description |
|---|---|
| MethodInfo | The cached MethodInfo. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of type. |
Retrieve<T>(String, String, Type[])
Retrieves the properties stored for the specified type. If the properties are not available, it calls the factory method to retrieve them and returns them as an array of PropertyInfo.
Declaration
public MethodInfo Retrieve<T>(string name, string alias, params Type[] types)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | The name. |
| String | alias | The alias. |
| Type[] | types | The types. |
Returns
| Type | Description |
|---|---|
| MethodInfo | The cached MethodInfo. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of type. |
Retrieve<T>(String, Type[])
Retrieves the specified name.
Declaration
public MethodInfo Retrieve<T>(string name, params Type[] types)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | The name. |
| Type[] | types | The types. |
Returns
| Type | Description |
|---|---|
| MethodInfo | The cached MethodInfo. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of type. |