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

Definition

Represents an assembly, which is a reusable, versionable, and self-describing building block of an application.

class core_export_ assembly : public xtd::object, public xtd::iequatable<xtd::reflection::assembly>;
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
assembly()=default
Initializes a new instance of the xtd::reflection::assembly class.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
Inheritance
xtd::objectxtd::reflection::assembly
Header
#include <xtd/reflection/assembly>
Namespace
xtd::diagnostics
Library
xtd.core

Public Properties

auto company () const noexcept -> const xtd::string &
 Gets company name information.
 
auto configuration () const noexcept -> const xtd::string &
 Gets assembly configuration information.
 
auto copyright () const noexcept -> const xtd::string &
 Initializes a new instance of the xtd::reflection::assembly_copyright_attribute class.
 
auto culture () const noexcept -> const xtd::string &
 Gets culture information.
 
auto description () const noexcept -> const xtd::string &
 Gets decription information.
 
auto file_name () const noexcept -> xtd::string
 Gets file_name information.
 
auto file_version () const noexcept -> const xtd::string &
 Gets file version information.
 
auto guid () const noexcept -> const xtd::string &
 Gets guid information.
 
auto identifier () const noexcept -> const xtd::string &
 Gets identifier information.
 
auto location () const noexcept -> xtd::string
 Gets the location of the executable file.
 
auto location_path () const noexcept -> xtd::string
 Gets the path for the executable file that started the application, not including the executable name.
 
auto name () const noexcept -> const xtd::string &
 Gets name information.
 
auto name_or_file_name () const noexcept -> xtd::string
 Gets name or file_name if empty information.
 
auto product () const noexcept -> const xtd::string &
 Gets product information.
 
auto title () const noexcept -> const xtd::string &
 Gets title information.
 
auto trademarks () const noexcept -> const xtd::string &
 Gets trademark information.
 
auto version () const noexcept -> const xtd::string &
 Gets version information.
 

Public Methods

auto equals (const xtd::object &obj) const noexcept -> bool override
 Determines whether the specified object is equal to the current object.
 
auto equals (const assembly &other) const noexcept -> bool override
 Determines whether the specified object is equal to the current object.
 
auto get_hash_code () const noexcept -> xtd::size override
 Serves as a hash function for a particular type.
 

Public Static Methods

static auto get_executing_assembly () noexcept -> const assembly &
 Gets the assembly that contains the code that is currently executing.
 

Protected constructors

 assembly ()=default
 Initializes a new instance of the xtd::reflection::assembly class.
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ assembly()

xtd::reflection::assembly::assembly ( )
protecteddefault

Initializes a new instance of the xtd::reflection::assembly class.

Remarks
This constructor is invoked by derived classes during the construction of xtd::reflection::assembly objects.

Member Function Documentation

◆ company()

auto xtd::reflection::assembly::company ( ) const -> const xtd::string &
nodiscardnoexcept

Gets company name information.

Returns
A string containing the company name.

◆ configuration()

auto xtd::reflection::assembly::configuration ( ) const -> const xtd::string &
nodiscardnoexcept

Gets assembly configuration information.

Returns
A string containing the assembly configuration information.

◆ copyright()

auto xtd::reflection::assembly::copyright ( ) const -> const xtd::string &
nodiscardnoexcept

Initializes a new instance of the xtd::reflection::assembly_copyright_attribute class.

Parameters
copyrightThe copyright information.

◆ culture()

auto xtd::reflection::assembly::culture ( ) const -> const xtd::string &
nodiscardnoexcept

Gets culture information.

Returns
A string containing the culture information.

◆ description()

auto xtd::reflection::assembly::description ( ) const -> const xtd::string &
nodiscardnoexcept

Gets decription information.

Returns
A string containing the decription information.

◆ file_name()

auto xtd::reflection::assembly::file_name ( ) const -> xtd::string
nodiscardnoexcept

Gets file_name information.

Returns
A string containing the file_name information.

◆ file_version()

auto xtd::reflection::assembly::file_version ( ) const -> const xtd::string &
nodiscardnoexcept

Gets file version information.

Returns
A string containing the file version information.

◆ guid()

auto xtd::reflection::assembly::guid ( ) const -> const xtd::string &
nodiscardnoexcept

Gets guid information.

Returns
A string containing the guid information.

◆ identifier()

auto xtd::reflection::assembly::identifier ( ) const -> const xtd::string &
nodiscardnoexcept

Gets identifier information.

Returns
A string containing the identifier information.

◆ location()

auto xtd::reflection::assembly::location ( ) const -> xtd::string
nodiscardnoexcept

Gets the location of the executable file.

Returns
A string containing the location_of the executable file.

◆ location_path()

auto xtd::reflection::assembly::location_path ( ) const -> xtd::string
nodiscardnoexcept

Gets the path for the executable file that started the application, not including the executable name.

Returns
The path for the executable file that started the application.

◆ name()

auto xtd::reflection::assembly::name ( ) const -> const xtd::string &
nodiscardnoexcept

Gets name information.

Returns
A string containing the name information.

◆ name_or_file_name()

auto xtd::reflection::assembly::name_or_file_name ( ) const -> xtd::string
nodiscardnoexcept

Gets name or file_name if empty information.

Returns
A string containing the name or file_name if empty information.

◆ product()

auto xtd::reflection::assembly::product ( ) const -> const xtd::string &
nodiscardnoexcept

Gets product information.

Returns
A string containing the product information.

◆ title()

auto xtd::reflection::assembly::title ( ) const -> const xtd::string &
nodiscardnoexcept

Gets title information.

Returns
A string containing the title information.

◆ trademarks()

auto xtd::reflection::assembly::trademarks ( ) const -> const xtd::string &
nodiscardnoexcept

Gets trademark information.

Returns
A string containing the trademark information.

◆ version()

auto xtd::reflection::assembly::version ( ) const -> const xtd::string &
nodiscardnoexcept

Gets version information.

Returns
A string containing the version information.

◆ equals() [1/2]

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

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

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::reflection::assembly::equals ( const assembly & other) const -> bool
nodiscardoverridevirtualnoexcept

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

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

Implements xtd::iequatable< xtd::reflection::assembly >.

◆ get_hash_code()

auto xtd::reflection::assembly::get_hash_code ( ) const -> xtd::size
nodiscardoverridevirtualnoexcept

Serves as a hash function for a particular type.

Returns
A hash code for the current object.

Reimplemented from xtd::object.

◆ get_executing_assembly()

static auto xtd::reflection::assembly::get_executing_assembly ( ) -> const assembly &
staticnodiscardnoexcept

Gets the assembly that contains the code that is currently executing.

Returns
The assembly that contains the code that is currently executing.

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