xtd 1.0.0
Loading...
Searching...
No Matches
xtd::type_object Class Reference
Inheritance diagram for xtd::type_object:
xtd::object xtd::iequatable< type_object > xtd::interface xtd::extensions::equality_operators< type_object, iequatable< type_object > >

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.
auto full_name () const noexcept -> xtd::string
 Gets the fully qualified name of the type_object, including the namespace of the type_object.
auto name () const noexcept -> xtd::string
 Gets the name of the type_object.
auto namespace_ () const noexcept -> xtd::string
 Gets the namespace of the type_object.
auto equals (const xtd::object &obj) const noexcept -> bool override
 Determines whether the specified object is equal to the current object.
auto equals (const type_object &type) const noexcept -> bool override
 Determines whether the specified object is equal to the current object.
auto get_hash_code () const noexcept -> xtd::usize override
 Serves as a hash function for a particular type.
auto to_string () const noexcept -> xtd::string override
 Returns a xtd::string that represents the current object.

Additional Inherited Members

 object ()=default
 Create a new instance of the ultimate base class object.
virtual auto get_type () const noexcept -> type_object
 Gets the type of the current instance.
template<typename object_t>
auto memberwise_clone () const -> xtd::unique_ptr_object< object_t >
 Creates a shallow copy of the current object.
template<typename object_a_t, typename object_b_t>
static auto equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are considered equal.
template<typename object_a_t, typename object_b_t>
static auto reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are the same instance.

Member Function Documentation

◆ full_name()

auto xtd::type_object::full_name ( ) const -> xtd::string
nodiscardnoexcept

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

Public 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::string type is xtd::string.

◆ name()

auto xtd::type_object::name ( ) const -> xtd::string
nodiscardnoexcept

Gets the name of the type_object.

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

◆ namespace_()

auto xtd::type_object::namespace_ ( ) const -> xtd::string
nodiscardnoexcept

Gets the namespace of the type_object.

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

◆ equals() [1/2]

auto xtd::type_object::equals ( const xtd::object & obj) const -> bool
nodiscardoverridevirtualnoexcept

Determines whether the specified object is equal to the current object.

Public Methods
Parameters
objThe object to compare with the current object.
Returns
true if the specified object is equal to the current object. otherwise, false.

Reimplemented from xtd::object.

◆ equals() [2/2]

auto xtd::type_object::equals ( const type_object & type) const -> bool
nodiscardoverridevirtualnoexcept

Determines whether the specified object is equal to the current object.

Parameters
typeThe object to compare with the current object.
Returns
true if the specified object is equal to the current object. otherwise, false.

Implements xtd::iequatable< type_object >.

◆ get_hash_code()

auto xtd::type_object::get_hash_code ( ) const -> xtd::usize
nodiscardoverridevirtualnoexcept

Serves as a hash function for a particular type.

Returns
A hash code for the current object.

Reimplemented from xtd::object.

◆ to_string()

auto xtd::type_object::to_string ( ) const -> xtd::string
nodiscardoverridevirtualnoexcept

Returns a xtd::string that represents the current object.

Returns
A string that represents the current object.

Reimplemented from xtd::object.


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