xtd 0.2.0
Loading...
Searching...
No Matches
xtd::type_object Class Reference
Inheritance diagram for xtd::type_object:
xtd::object xtd::iequatable< type_object > xtd::interface

Definition

Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.

Header
#include <xtd/type_object>
Namespace
xtd
Library
xtd.core
Remarks
For more information about types, see Native types, boxing and unboxing.
xtd::ustring full_name () const noexcept
 Gets the fully qualified name of the type_object, including the namespace of the type_object.
 
xtd::ustring name () const noexcept
 Gets the name of the type_object.
 
xtd::ustring namespace_ () const noexcept
 Gets the namespace of the type_object.
 
bool equals (const type_object &type) const noexcept override
 
xtd::ustring to_string () const noexcept override
 Returns a sxd::ustring that represents the current object.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const noexcept
 Creates a shallow copy of the current object.
 
- Public Member Functions inherited from xtd::iequatable< type_object >
- Static Public Member Functions inherited from xtd::object
static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
static bool reference_equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Member Function Documentation

◆ equals()

bool xtd::type_object::equals ( const type_object type) const
overridevirtualnoexcept
Methods

Implements xtd::iequatable< type_object >.

◆ full_name()

xtd::ustring xtd::type_object::full_name ( ) const
noexcept

Gets the fully qualified name of the type_object, including the namespace of the type_object.

Properties
Returns
The fully qualified name of the type_object, including the namespace of the type_object.
Remarks
For example, the fully qualified name of the xtd::ustring type is xtd::ustring.

◆ name()

xtd::ustring xtd::type_object::name ( ) const
noexcept

Gets the name of the type_object.

Returns
The name of the type_object.
Remarks
For example, the name of the xtd::ustring type is ustring.

◆ namespace_()

xtd::ustring xtd::type_object::namespace_ ( ) const
noexcept

Gets the namespace of the type_object.

Returns
The namespace of the type_object.
Remarks
For example, the namespace of the xtd::ustring type is xtd::

◆ to_string()

xtd::ustring xtd::type_object::to_string ( ) const
overridevirtualnoexcept

Returns a sxd::ustring that represents the current object.

Returns
A string that represents the current object.
Examples
The following code example demonstrates what to_string returns.

Reimplemented from xtd::object.


The documentation for this class was generated from the following file: