## TypeInfo::AddDefaultConstructor() method


为类型 T 设置默认构造函数。

```cpp
template<class T> void System::TypeInfo::AddDefaultConstructor()
```

## 另见

* Class [TypeInfo](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## TypeInfo::AddDefaultConstructor(DefaultConstructor) method


通过创建类实例的函数对象设置默认构造函数。

```cpp
void System::TypeInfo::AddDefaultConstructor(DefaultConstructor method)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 方法 | DefaultConstructor | 创建类实例的仿函数 |

## 另见

* Typedef [DefaultConstructor](../defaultconstructor/)
* Class [TypeInfo](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
