Method TryConstructFromAssemblyQualifiedTypeName
TryConstructFromAssemblyQualifiedTypeName<T>(string, out T)
Construct instance of type resolved from assembly qualified type name, and return it as T.
Resolved type must have an implicit, default or registered constructor, and not have ObsoleteAttribute.
Declaration
public static bool TryConstructFromAssemblyQualifiedTypeName<T>(string assemblyQualifiedTypeName, out T value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | assemblyQualifiedTypeName | The assembly qualified type name. |
| T | value | New instance of type resolved from assembly qualified type name. |
Returns
| Type | Description |
|---|---|
| bool | true if type resolved from assembly qualified type name was successfully constructed, false otherwise. |
Type Parameters
| Name | Description |
|---|---|
| T | The returned type. |