xtd.core examples
July 2, 2026 ยท View on GitHub
This folder contains xtd.core examples used by Reference Guide and more.
Hello Worlds
- hello_world_console The classic first application "Hello, World!" with xtd::console class.
- hello_world_diagnostics The classic first application "Hello, World!" with xtd::diagnostics::trace class.
- hello_world_environment The classic first application "Hello, World!" with xtd::environment class.
- hello_world_io The classic first application "Hello, World!" with xtd::io::file and xtd::io::path classes.
- hello_world_string The classic first application "Hello, World!" with xtd::string class.
any
- any shows how to use xtd::any_object class.
- any shows how to use xtd::any_object class.
array
- array shows how to use how to use xtd::array class.
- array2 shows how to use xtd::array class.
Bit converter
- bit_converter shows hows how to use xtd::bit_converter class.
- bit_converter_endianness shows how to use xtd::bit_converter::endianness method.
- bit_converter_is_big_endian shows how to use xtd::bit_converter::is_big_endian method.
- bit_converter_is_little_endian shows how to use xtd::bit_converter::is_little_endian method.
- bit_converter_round_trips shows how to use xtd::bit_converter class.
Boxing and unboxing
- boxing shows how to use xtd::boxing methods.
Collections
- array_list shows how to use xtd::collections::array_list alias.
- array_list2 shows how to use xtd::collections::array_list alias.
- array_list3 shows how to use xtd::collections::array_list alias.
- bit_array shows how to use xtd::collections::bit_array class.
- hashtable shows how to use xtd::collections::hashtable alias.
- hashtable2 shows how to use xtd::collections::hashtable alias.
- ienumerable shows how to use xtd::collections::ienumerable interface.
- ienumerator shows how to use xtd::collections::ienumerator interface.
- ilist shows how to use xtd::collections::ilist interface.
Concepts
- comparable shows how to use how to use xtd::comparable concept.
- enumerable shows how to use how to use xtd::collections::generic::enumerable concept.
- forward_iterable shows how to use how to use [xtd:: forward_iterable](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1 forward__iterable.html) concept.
- stringable shows how to use how to use xtd::stringable concept.
Configuration
- file_settings shows how to use xtd::consiguration::file_settings object.
Console
- console_background_color shows how to use xtd::console::background_color property.
- console_beep shows how to use xtd::console::beep method.
- console_buffer shows how to use xtd::console::buffer_height and xtd::console::buffer_width methods.
- console_clear shows how to use xtd::console::clear method.
- console_color shows how to use xtd::console::background_color and xtd::console::foreground_color methods.
- console_cursor shows how to use xtd::console::set_cursor_position, xtd::console::cursor_top and xtd::console::cursor_left methods.
- console_cursor_size shows how to use xtd::console::cursor_size property.
- console_cursor_visible shows how to use xtd::console::cursor_visible property.
- console_firework shows how to use some xtd::console methods.
- console_in_out shows how to use xtd::console::in and xtd::console::out streams.
- console_info shows how to use xtd::console class.
- console_key_available shows how to use xtd::console::key_available and xtd::console::read_key methods.
- console_out shows how to use xtd::console::out stream.
- console_read shows how to use xtd::console::read method.
- console_read_key shows how to use xtd::console::read_key and xtd::console::key_available methods.
- console_read_line shows how to use xtd::console::read_line method.
- console_song shows how to use xtd::console::beep method.
- console_title shows how to use xtd::console::title method.
- console_unicode shows how to use xtd::console with unicode characters.
- console_window_size shows how to use xtd::console::set_window_size method.
- redirect_output shows how to use xtd::console class.
- wconsole shows how to use xtd::console class.
Convert
- as shows how to use xtd::as operator.
- to_byte shows how to use xtd::convert::to_byte method.
- to_int32 shows how to use xtd::convert::to_int32 method.
- to_ustring shows how to use xtd::convert::to_string method and xtd::convert_string class.
- unsafe_as shows how to use xtd::unsafe::as operator.
Convert_string
- as_string shows how to use xtd::as operator.
- convert_string shows how to use xtd::as converters.
- string_to_string shows how to use xtd::basic_string::to_string methods.
Coroutines
- coroutine_task Shows how to use coroutine with task.
- coroutine_method Shows how to use coroutine with method and task.
- coroutine_delegate Shows how to use coroutine with delegate and task.
- coroutine_lambda Shows how to use coroutine with lambda expression and task.
Date time
- date_time shows how to use xtd::date_time class.
- date_time_add shows how to use xtd::date_time::add method.
- date_time_add_days shows how to use xtd::date_time::add_days method.
- date_time_add_hours shows how to use xtd::date_time::add_hours method.
- date_time_add_milliseconds shows how to use xtd::date_time::add_milliseconds method.
- date_time_add_minutes shows how to use xtd::date_time::add_minutes method.
- date_time_add_months shows how to use xtd::date_time::add_months method.
- date_time_add_seconds shows how to use xtd::date_time::add_seconds method.
- date_time_add_years shows how to use xtd::date_time::add_years method.
- date_time_date shows how to use xtd::date_time::date property.
- date_time_day_of_week shows how to use xtd::date_time::day_of_week property.
- date_time_day_of_year shows how to use xtd::date_time::day_of_year property.
- date_time_days_in_month shows how to use xtd::date_time::days_in_month method.
- date_time_days_in_month2 shows how to use xtd::date_time::days_in_month method.
- date_time_max_value Shows how to use xtd::date_time::max_value field.
- date_time_min_value Shows how to use xtd::date_time::min_value field.
- date_time_now Shows how to use xtd::date_time::now property.
- date_time_now2 Shows how to use xtd::date_time::now property.
- date_time_specify_kind shows how to use xtd::date_time::specify_kind method.
- date_time_sprintf shows how to use xtd::date_time::sprintf method.
- date_time_subtract shows how to use xtd::date_time::subtract method.
- date_time_ticks shows how to use xtd::date_time::ticks class with ticks constructors.
- date_time_ticks2 shows how to use xtd::date_time::ticks property.
- date_time_time_of_day shows how to use xtd::date_time::time_of_day property.
- date_time_to_string_format shows how to use xtd::date_time::to_string with format method.
- date_time_today shows how to use xtd::date_time::today property.
Delegates
- action shows how to use xtd::action alias.
- action1 shows how to simplify code by instantiating the action delegate instead of explicitly defining a new delegate and assigning a named method to it.
- action2 shows how to simplify code by instantiating the action delegate instead of explicitly defining a new delegate and assigning a named method to it.
- action3 shows how to simplify code by instantiating the action delegate instead of explicitly defining a new delegate and assigning a named method to it.
- delegate shows how to use xtd::delegate class.
- delegate_begin_invoke shows how to use xtd::delegate::begin_invoke, xtd::delegate::end_invoke and xtd::delegate::invoke methods.
- delegate_begin_invoke2 shows how to use xtd::delegate::begin_invoke, xtd::delegate::end_invoke and xtd::delegate::invoke methods.
- delegate_lambda shows how to use xtd::delegate class.
- delegate_member_method shows how to use xtd::delegate class.
- delegate_multicast shows how to use xtd::delegate class.
- event shows how to use xtd::event class.
Diagnostics
- assert shows how to use assert_ macro.
- assert_with_message shows how to use assert_ macro wth message.
- console_trace_listener shows how to use xtd::diagnostics::console_trace_listener class.
- debug shows how to use xtd::diagnostics::debug class.
- debug_cassert shows how to use xtd::diagnostics::debug::cassert method.
- source_location_invoked_directly shows how to use xtd::source_location class.
- stack_frame shows how to use xtd::diagnostics::stack_frame class.
- stack_trace shows how to use xtd::diagnostics::stack_trace class.
- stack_trace_simple demonstrates how to create a simple xtd::diagnostics::stack_trace class and iterate through its frames to obtain debugging and diagnostic information.
- stopwatch shows how to use xtd::diagnostics::stopwatch class.
- stopwatch_constructor initializes a xtd::diagnostics::stopwatch instance by using a simple class constructor.
- trace shows how to use xtd::diagnostics::trace class.
- trace_cassert shows how to use xtd::diagnostics::trace::cassert method.
Enumerations
- enum shows how to use xtd::enum_object class and enum_ helper.
- enum_class shows how to use xtd::enum_object class and enum_class_ helper.
- enum_class_flags shows how to use xtd::enum_object class, enum_class_ and add_enum_flag_operators_ helpers.
- enum_class_flags_introspection shows how the introspection woks with enum_class_ helper.
- enum_class_flags_without_helpers shows how to use xtd::enum_object and xtd::enum_register classes.
- enum_class_parse shows how to use xtd::enum_object::parse method.
- enum_class_ut shows how to use xtd::enum_object class and enum_class_ut_ helper.
- enum_class_without_helper shows how to use xtd::enum_object and xtd::enum_register classes.
- enum_struct shows how to use xtd::enum_object class and enum_struct_ helper.
- enum_struct_ut shows how to use xtd::enum_object class and enum_struct_ut_ helper.
- enum_ut shows how to use xtd::enum_object class and enum_ut_ helper.
Environment
- environment shows how to use xtd::environment class.
- environment_cancel_signal shows how to use xtd::environment::cancel_signal event.
- environment_command_line shows how to use xtd::environment::command_line method.
- environment_current_directory shows how to use xtd::environment::current_directory method.
- environment_exit shows how to use xtd::environment::exit method.
- environment_exit_code shows how to use xtd::environment::exit_code method.
- environment_expand_environment_variables shows how to use xtd::environment::expand_environment_variables method.
- environment_program_exit shows how to use xtd::environment::program_exit event.
- environment_stack_trace shows how to use xtd::environment::stack_trace method.
- environment_tick_count shows how to use xtd::environment::tick_count method.
Exceptions
- exception_dispatch_info shows how to use xtd::exception_services::exception_dispatch_info class.
- argument_exception shows how to use xtd::argument_exception exception.
- exception_ptr shows how to use std::exception_ptr and invalid_operation_exception exception.
- system_exception shows how to use xtd::system_exception exception.
- user_defined_exception shows how to use xtd::exception exception.
Expressions
- add_expression Shows how to use xtd::expressions::operator + expression.
- division_expression Shows how to use xtd::expressions::operator / expression.
Format
- format shows how to use xtd::format method.
- format_associative_containers shows how to use xtd::format method with associative containers (std::set, std::multiset, std::map and std::multimap).
- format_boolean shows how to use xtd::format method with bool.
- format_character shows how to use xtd::format method with characters (char, wchar_t, char8_t, char16_t and char32_t).
- format_class shows how to use xtd::format method with owner class.
- format_class_with_specified_formatting shows how to use xtd::format method with owner class and with specified formatting args.
- format_date_time shows how to use xtd::format method with date time (time_t, std::tm and std::chrono:system_clock::time_point).
- format_duration shows how to use xtd::format method with duration (std::chrono::duration).
- format_enum shows how to use xtd::format method with owner enum.
- format_enum_class shows how to use xtd::format method with owner enum class.
- format_exception shows how to use xtd::format method with exceptions (std::exception and inherited classes, xtd::system_exception and inherited classes).
- format_floating_point shows how to use xtd::format method with floating point (float, double and long double).
- format_nullptr shows how to use xtd::format method with nulllptr and null.
- format_number shows how to use xtd::format method with numeric (int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t and uint64_t).
- format_optional shows how to use xtd::format method with xtd::optional.
- format_pair shows how to use xtd::format method with std::pair.
- format_pointer shows how to use xtd::format method with std::shared_ptr, std::unique_ptr and classic pointer.
- format_sequence_containers shows how to use xtd::format method with sequence containers (std::initializer_list, std::array, std::forward_list, std::list, std::deque and std::vector).
- format_string shows how to use xtd::format method with strings (std::string, std::wstring, std::u8string, std::u16string and std::u32string).
- format_system_clock shows how to use xtd::format method with std::chrono::system_clock class.
- format_time_span shows how to use xtd::format method with xtd::time_span class.
- format_tm shows how to use xtd::format method with std::tm struct.
- format_tuple shows how to use xtd::format method with std::tuple.
- format_unordered_associative_containers shows how to use xtd::format method with associative containers (std::unordered_set, std::unordered_multiset, std::unordered_map and std::unordered_multimap).
- format_with_alignment shows how to use xtd::format method with specified alignment args.
- format_with_order shows how to use xtd::format method with specified order args.
generic_Collections
- generic_dictionary shows how to use xtd::collections::generic::dictionary class.
- generic_enumerable_generator shows how to use xtd::collections::generic::enumerable_generator genrator.
- generic_enumerable_generator2 shows how to use xtd::collections::generic::enumerable_generator genrator.
- generic_hash_set shows how to use xtd::collections::generic: generic_hash_set class.
- generic_hash_set2 shows how to use xtd::collections::generic: generic_hash_set class.
- generic_icollection shows how to use xtd::collections::generic::icollection interface.
- generic_ienumerable shows how to use xtd::collections::generic::ienumerable interface.
- generic_ienumerable2 shows how to use xtd::collections::generic::ienumerable interface.
- generic_ienumerable3 shows how to use xtd::collections::generic::ienumerable interface.
- generic_ienumerator shows how to use xtd::collections::generic::ienumerator interface.
- generic_ilist shows how to use xtd::collections::generic::ilist interface.
- generic_linked_list shows how to use xtd::collections::generic:: generic_linked_list class.
- generic_linked_list_node shows how to use xtd::collections::generic::generic_linked_list_node class.
- generic_list shows how to use xtd::collections::generic::list class.
- generic_list2 shows how to use xtd::collections::generic::list class.
- generic_list3 shows how to use xtd::collections::generic::list class.
- generic_list4 shows how to use xtd::collections::generic::list class.
- generic_list_as_read_only shows how to use xtd::collections::generic::list class.
- generic_list_binary_search shows how to use xtd::collections::generic::list::binary_search method.
- generic_list_conversions_to_vector shows how to convert xtd::collections::generic::list to std::vector and std::vector to xtd::collections::generic::list.
- generic_list_convert_all shows how to use xtd::collections::generic::list::convert_all method.
- generic_list_exists shows how to use xtd::collections::generic::list::exists method.
- generic_list_for_each shows how to use xtd::collections::generic::list::for_each method.
- generic_list_iterator_vs_vector_iterator highlights the difference between xtd::collections::generic::list and std::vector when modifying a collection during iteration.
- generic_list_reverse shows how to use xtd::collections::generic::list::reverse method.
- generic_ordered_dictionary shows how to use xtd::collections::generic::ordered_dictionary clss.
- generic_queue shows how to use xtd::collections::generic::queue clss.
- generic_stack shows how to use xtd::collections::generic::stack clss.
- mix_generic_list_and_std_vector_api shows how to use xtd::collections::generic::list class.
globalization
- culture_info_culture_types shows how to use xtd::globalization::culture_info class.
- culture_info_current_culture shows how to use xtd::globalization::culture_info::current_culture property.
- culture_info_date_time_format shows how to use xtd::globalization::culture_info::date_time_format property.
- culture_info_is_neutral_culture shows how to use xtd::globalization::culture_info::is_neutral_culture property.
- culture_info_lcid shows how to use xtd::globalization::culture_info::lcid property.
- culture_info_parent shows how to use xtd::globalization::culture_info::parent property.
- culture_info_properties shows how to use xtd::globalization::culture_info properties.
- culture_info_with_name shows how to use xtd::globalization::culture_info class.
- date_time_format_info shows how to use [xtd::globalization:: date_time_format_info](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1globalization_1_1 date__time__format__info.html) class.
Guid
Hash code
- hash_code shows how to use xtd::hash_code class.
Interfaces
- iasync_result shows how to use how to use xtd::iasync_result interface.
- iclonable shows how to use how to use xtd::iformatable interface.
- icompatable shows how to use how to use xtd::iformatable interface.
- iequaable shows how to use how to use xtd::iformatable interface.
- iformatable shows how to use how to use xtd::iformatable interface.
- iformatable_vs_to_string shows how to use how to use xtd::iformatable interface and xtd::to_string method.
- iobservable_iobserver shows how to use how to use xtd::iobservable and xtd::iobserver interfaces.
- iprogress shows how to use how to use xtd::iprogress interface.
- istringable shows how to use how to use xtd::istringable interface.
IO
- binary_reader shows how to use xtd::io::binary_reader class.
- binary_reader2 shows how to use xtd::io::binary_reader class.
- binary_reader3 shows how to use xtd::io::binary_reader class.
- directory_info shows how to use xtd::io::directory_info class.
- drive_info shows how to use xtd::io::drive_info class.
- file_info shows how to use xtd::io::file_info class.
- file_info2 shows how to use xtd::io::file_info class.
- file_info_append_text shows how to use xtd::io::file_info::append_text method.
- file_info_move_to shows how to use xtd::io::file_info::move_to method.
- file_info_open shows how to use xtd::io::file_info::open method.
- file_info_open_read shows how to use xtd::io::file_info::open_read method.
- file_info_open_text shows how to use xtd::io::file_info::open_text method.
- file_info_open_write shows how to use xtd::io::file_info::open_write method.
- file_info_replace shows how to use xtd::io::file_info::replace method.
Keywords
- block_scope shows how to use block_scope_ keyword.
- call_once shows how to use call_once_ keyword.
- call_once2 shows how to use call_once struct.
- interface shows how to use interface_ keyword.
- interface2 shows how to use xtd::interface keyword.
- lock shows how to use lock_ method.
- lock_guard_keyword shows how to use lock_guard_ method.
- nameof shows how to use nameof_ keyword.
- self shows how to use self_ keyword.
- sizeof shows how to use sizeof_ keyword.
- startup_keyword shows how to use startup_ keyword.
- static shows how to use static_ keyword.
- static_object shows how to use static_object_ keyword.
- typeof shows how to use typeof_ keyword.
- using shows how to use using_ keyword.
Linq
- enumerable_aggregate shows how to use xtd::linq::enumerable::aggregate method.
- enumerable_aggregate2 shows how to use xtd::linq::enumerable::aggregate method.
- enumerable_aggregate3 shows how to use xtd::linq::enumerable::aggregate method.
- enumerable_aggregate4 shows how to use xtd::linq::enumerable::aggregate method.
- enumerable_aggregate5 shows how to use xtd::linq::enumerable::aggregate method.
- enumerable_aggregate6 shows how to use xtd::linq::enumerable::aggregate method.
- enumerable_all shows how to use xtd::linq::enumerable::all method.
- enumerable_all2 shows how to use xtd::linq::enumerable::all method.
- enumerable_any shows how to use xtd::linq::enumerable::any method.
- enumerable_any2 shows how to use xtd::linq::enumerable::any method.
- enumerable_any3 shows how to use xtd::linq::enumerable::any method.
- enumerable_any4 shows how to use xtd::linq::enumerable::any method.
- enumerable_append shows how to use xtd::linq::enumerable::append method.
- enumerable_append2 shows how to use xtd::linq::enumerable::append method.
- enumerable_count shows how to use xtd::linq::enumerable::count method.
- enumerable_count2 shows how to use xtd::linq::enumerable::count method.
- enumerable_count_by shows how to use xtd::linq::enumerable::count_by method.
- enumerable_default_if_empty shows how to use xtd::linq::enumerable::default_if_empty method.
- enumerable_default_if_empty2 shows how to use xtd::linq::enumerable::default_if_empty method.
- enumerable_distinct shows how to use xtd::linq::enumerable::distinct method.
- enumerable_range shows how to use xtd::linq::enumerable::range method.
- enumerable_select shows how to use xtd::linq::enumerable::select method.
- enumerable_select2 shows how to use xtd::linq::enumerable::select method.
- enumerable_to_list shows how to use xtd::linq::enumerable::to_list method.
- enumerable_where shows how to use xtd::linq::enumerable::where method.
- enumerable_where2 shows how to use xtd::linq::enumerable::where method.
- linq_from shows how to use xtd::linq::from method.
- linq_from2 shows how to use xtd::linq::from method.
- linq_from3 shows how to use xtd::linq::from method.
- linq_from4 shows how to use xtd::linq::from method.
- linq_from5 shows how to use xtd::linq::from method.
- linq_from6 shows how to use xtd::linq::from method.
Mains
- main shows how to use xtd::startup method.
- main1 shows how to use xtd::startup method.
- main2 shows how to use xtd::startup method.
- main3 shows how to use xtd::startup method.
- main4 shows how to use xtd::startup method.
- main5 shows how to use xtd::startup method.
Math
- math uses several mathematical and trigonometric functions from the xtd::math class to calculate the inner angles of a trapezoid.
Media
- system_sounds shows how to use xtd::media::system_sounds and xtd::media::system_sound classes.
Memory information
- memory_information shows how to use xtd::memory_information class.
Network
- dns_get_host_addresses shows hows how to use xtd::net::dns class.
- dns_get_host_entry shows hows how to use xtd::net::dns class.
- ip_address shows hows how to use xtd::net::dns class.
- network_stream shows hows how to use xtd::net::sockets::network_stream class.
- socket_tcp_ip_v4 shows hows how to use xtd::net::sockets::socket class.
- socket_tcp_ip_v4_without_thread shows hows how to use xtd::net::sockets::socket class.
- socket_tcp_ip_v6 shows hows how to use xtd::net::sockets::socket class.
- socket_udp_ip_v4 shows hows how to use xtd::net::sockets::socket class.
- socket_udp_ip_v6 shows hows how to use xtd::net::sockets::socket class.
- tcp_client_ip_v4 shows hows how to use xtd::net::sockets::tcp_client class.
- tcp_client_ip_v6 shows hows how to use xtd::net::sockets::tcp_client class.
- udp_client_ip_v4 shows hows how to use xtd::net::sockets::udp_client class.
- udp_client_ip_v6 shows hows how to use xtd::net::sockets::udp_client class.
Object
- object shows hows how to use xtd::object class.
- object_and_iequatable shows hows how to use xtd::object and xtd::iequatable.
- object_equals shows how to use xtd::object::equals method.
- object_equals2 shows how to use xtd::object::equals static method.
- object_get_type shows how to use xtd::object::get_type method.
- object_memberwise_clone shows how to use xtd::object::memberwise_clone method.
- object_reference_equals shows hows how to use xtd::object::reference_equals static method.
- object_to_string shows hows how to use xtd::object::to_string method.
object_model_Collections
- read_only_collection shows how to use xtd::collections::object_model::read_only_collection class.
Parse
- parse_boolean shows how to use xtd::parse method with boolean value.
- parse_enum shows how to use xtd::parse and xtd::enum_object<>::parse methods.
- parse_enum_class shows how to use xtd::parse and xtd::enum_object<>::parse methods.
- parse_enum_struct shows how to use xtd::parse and xtd::enum_object<>::parse methods.
- parse_floating_point shows how to use xtd::parse method with floating point (float, double and decimal).
- parse_numeric shows how to use xtd::parse method with numeric (int8, int16, int32, int64, uint8, uint16, uint32 and uint64).
Processes
- process_start_info shows how to use xtd::diagnostics::process_start_info class.
- process_with_standard_output_redirection shows how to use xtd::diagnostics::process class with standard output redirection.
Random
- random1 shows how to use xtd::random::next_bytes method.
- random2 shows how to use xtd::random class.
- random3 shows how to use xtd::random::next method.
Ranges
- ranges_views shows how to use xtd::ranges::views views.
- ranges_views_distinct shows how to use xtd::ranges::views::distinct_view class.
- ranges_views_distinct2 shows how to use xtd::ranges::views::distinct_view class.
- ranges_views_order_by shows how to use xtd::ranges::views::order_by_view class.
- ranges_views_order_by2 shows how to use xtd::ranges::views::order_by_view class.
- ranges_views_order_by_descending shows how to use xtd::ranges::views::order_by_descending_view class.
- ranges_views_order_by_descending2 shows how to use xtd::ranges::views::order_by_descending_view class.
- ranges_views_select shows how to use xtd::ranges::views::ranges_views_select class.
- ranges_views_select2 shows how to use xtd::ranges::views::ranges_views_select class.
- ranges_views_where shows how to use xtd::ranges::views::where_view class.
- ranges_views_where2 shows how to use xtd::ranges::views::where_view class.
Settings
- settings_with_cmake shows how to use xtd::configuration::settingd with CMake commands.
- settings_without_cmake shows how to use xtd::configuration::settingd directly without CMake commands.
Span
- span_from_memory Create a xtd::span from memory.
- span_over_array Create a xtd::span over an array.
sprintf
- sprintf shows how to use xtd::ustring::sprintf method.
- sprintf_boolean shows how to use xtd::ustring::sprinyf method with bool.
- sprintf_character shows how to use xtd::ustring::sprinyf method with characters (char, wchar_t, char8_t, char16_t and char32_t).
- sprintf_class shows how to use xtd::ustring::sprinyf method with owner class.
- sprintf_class_with_specified_formatting shows how to use xtd::ustring::sprinyf method with owner class and with specified formatting args.
- sprintf_class_with_specified_formating_with_to_string shows how to use xtd::ustring::sprinyf method with owner class and with specified formatting args.
- sprintf_date_time shows how to use xtd::ustring::sprinyf method with date time (time_t, std::tm and std::chrono:system_clock::time_point).
- sprintf_duration shows how to use xtd::ustring::sprinyf method with duration (std::chrono::duration).
- sprintf_enum shows how to use xtd::ustring::sprinyf method with owner enum.
- sprintf_enum_class shows how to use xtd::ustring::sprinyf method with owner enum class.
- sprintf_floating_point shows how to use xtd::ustring::sprinyf method with floating point (float, double and long double).
- sprintf_numeric shows how to use xtd::ustring::sprinyf method with numeric (int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t and uint64_t).
- sprintf_string shows how to use xtd::ustring::sprinyf method with strings (std::string, std::wstring, std::u8string, std::u16string and std::u32string).
- sprintf_with_alignment shows how to use xtd::ustring::sprinyf method with specified alignment args.
- sprintf_with_order shows how to use xtd::ustring::sprinyf method with specified order args.
Startups
- startup shows how to use xtd::startup method.
- startup1 shows how to use xtd::startup method.
- startup2 shows how to use xtd::startup method.
- startup3 shows how to use xtd::startup method.
- startup4 shows how to use xtd::startup method.
Strings
- compare shows how to use xtd::ustring::compare method.
- compare_ignore_case shows how to use xtd::ustring::compare method.
- concat shows how to use xtd::ustring::concat method.
- concat_collection shows how to use xtd::ustring::concat method.
- contains shows how to use xtd::ustring::contains method.
- join shows how to use xtd::ustring::join method.
- split shows how to use xtd::ustring::split method.
- string_format shows how to use xtd::ustring::format method.
- string_format_with_order shows how to use xtd::ustring::format method.
- string_unicode shows how to use xtd::string class with unicode.
- strings shows how to use xtd::basic_string constructors.
tasks
- tasks shows how to use xtd::threading::tasks:task class.
- task shows how to use xtd::threading::tasks:task class.
- task_completion_source shows how to use xtd::threading::tasks:task_completion_source class.
- task_delay shows how to use xtd::threading::tasks:task::delay method.
text
- compare shows how to use xtd::text::basic_string_builder::append method.
Threading
- auto_reset_event shows how to use xtd::threading::auto_reset_event class.
- barrier shows how to use xtd::threading::barrier class.
- barrier_simple shows how to use xtd::threading::barrier class.
- event_wait_handle shows how to use xtd::threading::event_wait_handle class.
- interlocked shows hows how to use xtd::threading::interlocked class.
- interlocked_decrement shows hows how to use xtd::threading::interlocked::decrement and xtd::threading::interlocked::increment methods.
- jthread shows hows how to use xtd::threading::jthread class.
- lock_guard shows how to use xtd::threading:lock_guard class.
- manual_reset_event shows how to use xtd::threading:manual_reset_event class.
- mixing_std_and_xtd_threads shows how to use and mixing xtd::threading::thread and std::thread classes.
- monitor shows how to use xtd::threading:monitor class.
- monitor_lock shows how to use xtd::threading:monitor class.
- monitor_pulse shows how to use xtd::threading:monitor::pulse method.
- monitor_pulse_all shows how to use xtd::threading:monitor::pulse_all method.
- mutex shows how to use xtd::threading:mutex class.
- semaphore shows how to use xtd::threading:semaphore class.
- thread shows hows how to use xtd::threading::thread class.
- thread2 shows hows how to use xtd::threading::thread class.
- thread_pool shows hows how to use xtd::threading::thread_pool class.
- thread_pool2 shows hows how to use xtd::threading::thread_pool class.
- timeout shows how to use xtd::threading:timeout class.
- timer shows how to use xtd::threading:timer class.
- wait_handle shows how to use xtd::threading:wait_handle class.
Time span
- time_span demonstrates the xtd::time_span struct.
- time_span_from_days demonstrates the xtd::time_span::from_days method.
- time_span_from_hours demonstrates the xtd::time_span::from_hours method.
Timers
- timers_timer shows how to use xtd::timers:timer class.
- timers_timer_synchronizing_object shows how to use xtd::timers:timer::synchronizing_object property.
Tips & Tricks
- binary_reader_and_binary_writer demonstrates that binary files created with xtd::io::binary_writer and read with xtd::io::binary_reader are fully compatible with .NET's BinaryWriter and BinaryReader. The files produced by xtd and .NET are identical, ensuring seamless cross-language interoperability.
- using_xtd_tunit_assert_without_tunit_app shows how to use xtd.tunit assert methods like xtd::tunit::assert in a xtd.console or xtd.forms application.
- xtd_collection_indexer shows how to use indexing operators with xtd::bpos (bpos, bpos + 1, bpos + 2), xtd::epos (epos, epos - 1, epos - 2, ...) and bitwise operators (~1_z, ~2_z, ...) with xtd collections like xtd::collections::generic::list.
Uri
Version
- version demonstrates the xtd::version constructor, and major, minor, build, revision, major_revision, and minor_revision properties.
- version_os shows how to use xtd::version to get the Operating System version.
Web
- css_reader shows how to use xtd::web::css::reader class.
- css_writer shows how to use xtd::web::css::writer class.
Others
- console_background_color2 shows how to use xtd::console::background_color method.
- console_background_color3 shows how to use xtd::console::background_color method.
- console_beep2 shows how to use xtd::console::beep method.
- console_beep3 shows how to use xtd::console::beep method.
- console_color2 shows how to use xtd::console::background_color and xtd::console::foreground_color methods.
- console_color3 shows how to use xtd::console::background_color and xtd::console::foreground_color methods.
- console_color4 shows how to use xtd::console::background_color and xtd::console::foreground_color methods.
- console_read_line shows how to use xtd::console::in stream.
- console_song2 shows how to use xtd::beep class.
- console_song3 shows how to use xtd::beep class.
- fibonacci_series shows how to use xtd::console and xtd::ustring classes.
- hello_world_console2 The same classic first application "Hello World" on the standard output stream with another style.
- hello_world_console3 The same classic first application "Hello World" on the standard output stream with another style.
- hello_world_diagnostics2 The same classic first application "Hello World" on the debug output stream with another style.
- hello_world_environment2 The same classic first application "Hello World" environment with another style.
- wconsole2 shows how to use xtd::wconsole class.
Build and run any project
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run -t any_project_name
