ReflectionExtensions Class
Provides extension methods related to reflection.
public static class ReflectionExtensions
- Inheritance:
- object object
Methods
CreateTypeReference(IQualifiedName)
Creates a new ITypeReference for a qualified name.
public static ITypeReference CreateTypeReference(this IQualifiedName qualifiedName)
| Parameter | Type | Description |
|---|---|---|
| qualifiedName | IQualifiedName | The IQualifiedName for the type reference. |
Returns
IsInitOnly(PropertyInfo)
Returns whether the specified PropertyInfo is init-only.
public static bool IsInitOnly(this PropertyInfo propertyInfo)
| Parameter | Type | Description |
|---|---|---|
| propertyInfo | PropertyInfo | The PropertyInfo to examine. |
Returns
- bool:
trueif the specified PropertyInfo is init-only; otherwise,false.
IsRecord(Type)
Returns whether the specified Type is a record.
public static bool IsRecord(this Type type)
| Parameter | Type | Description |
|---|---|---|
| type | Type | The Type to examine. |