Class InteropHelper
Helper class for interop work
Inheritance
object
InteropHelper
Namespace: Tableau.Migration.Interop
Assembly: Tableau.Migration.dll
Syntax
public static class InteropHelper
Methods
GetEnum<T>()
Gets all the names and values of an enumeration.
Declaration
public static IEnumerable<Tuple<string, object>> GetEnum<T>()
Returns
| Type | Description |
|---|---|
| IEnumerable<Tuple<string, object>> | Tuples with all the names and values. |
Type Parameters
| Name | Description |
|---|---|
| T | The enum type. |
GetFields(Type)
Gets the fields of a class.
Declaration
public static IEnumerable<string> GetFields(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type to get fields from. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The field names. |
GetFields<T>()
Gets the fields of a class.
Declaration
public static IEnumerable<string> GetFields<T>()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The field names. |
Type Parameters
| Name | Description |
|---|---|
| T | The type to get fields from. |
GetMethods(Type)
Gets the methods of a class.
Declaration
public static IEnumerable<string> GetMethods(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type to get methods from. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The method names. |
GetMethods<T>()
Gets the methods of a class.
Declaration
public static IEnumerable<string> GetMethods<T>()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The method names. |
Type Parameters
| Name | Description |
|---|---|
| T | The type to get methods from. |
GetProperties(Type)
Gets the properties of a class.
Declaration
public static IEnumerable<string> GetProperties(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type to get properties from. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The property names. |
GetProperties<T>()
Gets the properties of a class.
Declaration
public static IEnumerable<string> GetProperties<T>()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The property names. |
Type Parameters
| Name | Description |
|---|---|
| T | The type to get properties from. |