System::Reflection::MethodBase 类
MethodBase class
关于方法的基本信息。此类的对象只能使用 System::MakeObject() 函数进行分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。
class MethodBase : public System::Reflection::MemberInfo
方法
| 方法 | 描述 |
|---|---|
| get_MemberType() const override | 指示成员的类型——方法、构造函数、事件等。 |
| static GetCurrentMethod(const String&) | 此方法允许获取当前方法名。翻译器会自动将 ASPOSE_CURRENT_FUNCTION 替换为参数。 |
| MEMBER_FUNCTION_MAKE_OBJECT(MethodBase, CODEPORTING_ARGS(const String&full_name), CODEPORTING_ARGS(full_name)) | |
| MethodBase() | 初始化 MethodBase 类的新实例。 |
另见
- Class MemberInfo
- Namespace System::Reflection
- Library Aspose.Font for C++