CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
constructor_info.h
1#pragma once
2
3#include "system/reflection/method_base.h"
4#include "system/type_info_ext.h"
5
6namespace System {
7namespace Reflection {
8
10class ASPOSECPP_SHARED_CLASS ConstructorInfo : public MethodBase
11{
12public:
16 ASPOSECPP_SHARED_API ConstructorInfo(const String & full_name, std::function<System::Object::ptr()> default_constructor);
20 ASPOSECPP_SHARED_API TypeInfo get_DeclaringType();
22 ASPOSECPP_SHARED_API virtual MemberTypes get_MemberType() const override;
26
27protected:
29
30private:
31
32};
33
34}
35}
SmartPtr< Object > ptr
Alias for smart pointer type.
Definition: object.h:65
Provides access to constructor metadata.
Definition: constructor_info.h:11
ConstructorInfo(const String &full_name, std::function< System::Object::ptr()> default_constructor)
Initializes a new instance of the ConstructorInfo class for constructor without parameters.
System::SharedPtr< System::Object > Invoke(const System::ArrayPtr< System::SharedPtr< System::Object > > &parameters)
Invokes the method or constructor represented by the current instance, using the specified parameters...
std::function< System::Object::ptr()> m_default_constructor
Definition: constructor_info.h:28
virtual MemberTypes get_MemberType() const override
Gets a MemberTypes value indicating that this member is a constructor.
TypeInfo get_DeclaringType()
Gets the class that declares this member. NOT IMPLEMENTED.
Base information on method. Objects of this class should only be allocated using System::MakeObject()...
Definition: method_base.h:19
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a particular type and provides information about it.
Definition: type_info.h:109
MemberTypes
Marks each type of member.
Definition: member_types.h:11
Definition: db_command.h:9