diff --git a/.editorconfig b/.editorconfig
index 08fcbcf..a8e429a 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,31 +1,327 @@
+root = true
+# All files
[*]
-charset = utf-8
-end_of_line = crlf
-indent_size = 4
-indent_style = space
insert_final_newline = true
-max_line_length = 140
-tab_width = 4
+indent_style = space
+indent_size = 4
trim_trailing_whitespace = true
-
-[*.cs]
+charset = utf-8
+# Markdown files
+[*.md]
+max_line_length = 999999999
+# Xml project files
+[*.csproj]
+indent_size = 2
+ij_formatter_enabled = false
+# Xml config files
+[*.props]
+indent_size = 2
+ij_formatter_enabled = false
+# Xml files
+[*.xml]
+indent_size = 2
+# C# files
+[{*.cs,*.cshtml}]
+# Indentation and spacing
+tab_width = 4
+max_line_length = 280
+# Organize usings
+dotnet_separate_import_directive_groups = false
+dotnet_sort_system_directives_first = true
+file_header_template = unset
+# this. and Me. preferences
+dotnet_style_qualification_for_event = false:silent
+dotnet_style_qualification_for_field = false:silent
+dotnet_style_qualification_for_method = false:silent
+dotnet_style_qualification_for_property = false:silent
+# Language keywords vs BCL types preferences
+dotnet_style_predefined_type_for_locals_parameters_members = true:silent
+dotnet_style_predefined_type_for_member_access = true:silent
+# Parentheses preferences
+dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
+dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
+dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
+dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
+# Modifier preferences
+dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
+# Expression-level preferences
+dotnet_style_coalesce_expression = true:suggestion
+dotnet_style_collection_initializer = true:suggestion
+dotnet_style_explicit_tuple_names = true:suggestion
+dotnet_style_null_propagation = true:suggestion
+dotnet_style_object_initializer = true:suggestion
+dotnet_style_operator_placement_when_wrapping = beginning_of_line
+dotnet_style_prefer_auto_properties = true:suggestion
+dotnet_style_prefer_compound_assignment = true:suggestion
+dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
+dotnet_style_prefer_conditional_expression_over_return = true:suggestion
+dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
+dotnet_style_prefer_inferred_tuple_names = true:suggestion
+dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
+dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
+dotnet_style_prefer_simplified_interpolation = true:suggestion
+# Field preferences
+dotnet_style_readonly_field = true:warning
+# Parameter preferences
+dotnet_code_quality_unused_parameters = all:suggestion
+# Suppression preferences
+dotnet_remove_unnecessary_suppression_exclusions = none
+# var preferences
+csharp_style_var_elsewhere = true:suggestion
+csharp_style_var_for_built_in_types = true:suggestion
+csharp_style_var_when_type_is_apparent = true:suggestion
+# Expression-bodied members
+csharp_style_expression_bodied_accessors = true:silent
+csharp_style_expression_bodied_constructors = false:silent
+csharp_style_expression_bodied_indexers = true:silent
+csharp_style_expression_bodied_lambdas = true:suggestion
+csharp_style_expression_bodied_local_functions = false:silent
+csharp_style_expression_bodied_methods = false:silent
+csharp_style_expression_bodied_operators = false:silent
+csharp_style_expression_bodied_properties = true:silent
+# Pattern matching preferences
+csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
+csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
+csharp_style_prefer_not_pattern = true:suggestion
+csharp_style_prefer_pattern_matching = true:silent
+csharp_style_prefer_switch_expression = true:suggestion
+# Null-checking preferences
+csharp_style_conditional_delegate_call = true:suggestion
+# Modifier preferences
+csharp_prefer_static_local_function = true:warning
+csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:suggestion
+# Code-block preferences
+csharp_prefer_braces = true:silent
+csharp_prefer_simple_using_statement = true:suggestion
+# Expression-level preferences
+csharp_prefer_simple_default_expression = true:suggestion
+csharp_style_deconstructed_variable_declaration = true:suggestion
+csharp_style_inlined_variable_declaration = true:suggestion
+csharp_style_pattern_local_over_anonymous_function = true:suggestion
+csharp_style_prefer_index_operator = true:suggestion
+csharp_style_prefer_range_operator = true:suggestion
+csharp_style_throw_expression = true:suggestion
+csharp_style_unused_value_assignment_preference = discard_variable:suggestion
+csharp_style_unused_value_expression_statement_preference = discard_variable:silent
+# 'using' directive preferences
+csharp_using_directive_placement = outside_namespace:silent
+#### C# Formatting Rules ####
+# New line preferences
+csharp_new_line_before_catch = true
+csharp_new_line_before_else = true
+csharp_new_line_before_finally = true
+csharp_new_line_before_members_in_anonymous_types = true
+csharp_new_line_before_members_in_object_initializers = true
+csharp_new_line_before_open_brace = all
+csharp_new_line_between_query_expression_clauses = true
+# Indentation preferences
+csharp_indent_block_contents = true
+csharp_indent_braces = false
+csharp_indent_case_contents = true
+csharp_indent_case_contents_when_block = true
+csharp_indent_labels = one_less_than_current
+csharp_indent_switch_labels = true
+# Space preferences
+csharp_space_after_cast = true
+csharp_space_after_colon_in_inheritance_clause = true
+csharp_space_after_comma = true
+csharp_space_after_dot = false
+csharp_space_after_keywords_in_control_flow_statements = true
+csharp_space_after_semicolon_in_for_statement = true
+csharp_space_around_binary_operators = before_and_after
+csharp_space_around_declaration_statements = false
+csharp_space_before_colon_in_inheritance_clause = true
+csharp_space_before_comma = false
+csharp_space_before_dot = false
+csharp_space_before_open_square_brackets = false
+csharp_space_before_semicolon_in_for_statement = false
+csharp_space_between_empty_square_brackets = false
+csharp_space_between_method_call_empty_parameter_list_parentheses = false
+csharp_space_between_method_call_name_and_opening_parenthesis = false
+csharp_space_between_method_call_parameter_list_parentheses = false
+csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
+csharp_space_between_method_declaration_name_and_open_parenthesis = false
+csharp_space_between_method_declaration_parameter_list_parentheses = false
+csharp_space_between_parentheses = false
+csharp_space_between_square_brackets = false
+# Wrapping preferences
+csharp_preserve_single_line_blocks = true
+csharp_preserve_single_line_statements = true
+# Naming rules
+dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.symbols = types_and_namespaces
+dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.interfaces_should_be_ipascalcase.severity = suggestion
+dotnet_naming_rule.interfaces_should_be_ipascalcase.symbols = interfaces
+dotnet_naming_rule.interfaces_should_be_ipascalcase.style = ipascalcase
+dotnet_naming_rule.type_parameters_should_be_tpascalcase.severity = suggestion
+dotnet_naming_rule.type_parameters_should_be_tpascalcase.symbols = type_parameters
+dotnet_naming_rule.type_parameters_should_be_tpascalcase.style = tpascalcase
+dotnet_naming_rule.methods_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.methods_should_be_pascalcase.symbols = methods
+dotnet_naming_rule.methods_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.properties_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.properties_should_be_pascalcase.symbols = properties
+dotnet_naming_rule.properties_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.events_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.events_should_be_pascalcase.symbols = events
+dotnet_naming_rule.events_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.local_variables_should_be_camelcase.severity = suggestion
+dotnet_naming_rule.local_variables_should_be_camelcase.symbols = local_variables
+dotnet_naming_rule.local_variables_should_be_camelcase.style = camelcase
+dotnet_naming_rule.local_constants_should_be_camelcase.severity = suggestion
+dotnet_naming_rule.local_constants_should_be_camelcase.symbols = local_constants
+dotnet_naming_rule.local_constants_should_be_camelcase.style = camelcase
+dotnet_naming_rule.parameters_should_be_camelcase.severity = suggestion
+dotnet_naming_rule.parameters_should_be_camelcase.symbols = parameters
+dotnet_naming_rule.parameters_should_be_camelcase.style = camelcase
+dotnet_naming_rule.public_fields_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.public_fields_should_be_pascalcase.symbols = public_fields
+dotnet_naming_rule.public_fields_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.private_fields_should_be__camelcase.severity = suggestion
+dotnet_naming_rule.private_fields_should_be__camelcase.symbols = private_fields
+dotnet_naming_rule.private_fields_should_be__camelcase.style = _camelcase
+dotnet_naming_rule.private_static_fields_should_be_s_camelcase.severity = suggestion
+dotnet_naming_rule.private_static_fields_should_be_s_camelcase.symbols = private_static_fields
+dotnet_naming_rule.private_static_fields_should_be_s_camelcase.style = s_camelcase
+dotnet_naming_rule.public_constant_fields_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.public_constant_fields_should_be_pascalcase.symbols = public_constant_fields
+dotnet_naming_rule.public_constant_fields_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.private_constant_fields_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.private_constant_fields_should_be_pascalcase.symbols = private_constant_fields
+dotnet_naming_rule.private_constant_fields_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.symbols = public_static_readonly_fields
+dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.symbols = private_static_readonly_fields
+dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.enums_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.enums_should_be_pascalcase.symbols = enums
+dotnet_naming_rule.enums_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.local_functions_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.local_functions_should_be_pascalcase.symbols = local_functions
+dotnet_naming_rule.local_functions_should_be_pascalcase.style = pascalcase
+dotnet_naming_rule.non_field_members_should_be_pascalcase.severity = suggestion
+dotnet_naming_rule.non_field_members_should_be_pascalcase.symbols = non_field_members
+dotnet_naming_rule.non_field_members_should_be_pascalcase.style = pascalcase
+# Symbol specifications
+dotnet_naming_symbols.interfaces.applicable_kinds = interface
+dotnet_naming_symbols.interfaces.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.enums.applicable_kinds = enum
+dotnet_naming_symbols.enums.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.events.applicable_kinds = event
+dotnet_naming_symbols.events.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.methods.applicable_kinds = method
+dotnet_naming_symbols.methods.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.properties.applicable_kinds = property
+dotnet_naming_symbols.properties.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.public_fields.applicable_kinds = field
+dotnet_naming_symbols.public_fields.applicable_accessibilities = public, internal
+dotnet_naming_symbols.private_fields.applicable_kinds = field
+dotnet_naming_symbols.private_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
+dotnet_naming_symbols.private_static_fields.applicable_kinds = field
+dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
+dotnet_naming_symbols.private_static_fields.required_modifiers = static
+dotnet_naming_symbols.types_and_namespaces.applicable_kinds = namespace, class, struct, interface, enum
+dotnet_naming_symbols.types_and_namespaces.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
+dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.type_parameters.applicable_kinds = namespace
+dotnet_naming_symbols.type_parameters.applicable_accessibilities = *
+dotnet_naming_symbols.private_constant_fields.applicable_kinds = field
+dotnet_naming_symbols.private_constant_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
+dotnet_naming_symbols.private_constant_fields.required_modifiers = const
+dotnet_naming_symbols.local_variables.applicable_kinds = local
+dotnet_naming_symbols.local_variables.applicable_accessibilities = local
+dotnet_naming_symbols.local_constants.applicable_kinds = local
+dotnet_naming_symbols.local_constants.applicable_accessibilities = local
+dotnet_naming_symbols.local_constants.required_modifiers = const
+dotnet_naming_symbols.parameters.applicable_kinds = parameter
+dotnet_naming_symbols.parameters.applicable_accessibilities = *
+dotnet_naming_symbols.public_constant_fields.applicable_kinds = field
+dotnet_naming_symbols.public_constant_fields.applicable_accessibilities = public, internal
+dotnet_naming_symbols.public_constant_fields.required_modifiers = const
+dotnet_naming_symbols.public_static_readonly_fields.applicable_kinds = field
+dotnet_naming_symbols.public_static_readonly_fields.applicable_accessibilities = public, internal
+dotnet_naming_symbols.public_static_readonly_fields.required_modifiers = readonly, static
+dotnet_naming_symbols.private_static_readonly_fields.applicable_kinds = field
+dotnet_naming_symbols.private_static_readonly_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
+dotnet_naming_symbols.private_static_readonly_fields.required_modifiers = readonly, static
+dotnet_naming_symbols.local_functions.applicable_kinds = local_function
+dotnet_naming_symbols.local_functions.applicable_accessibilities = *
+# Naming styles
+dotnet_naming_style.pascalcase.capitalization = pascal_case
+dotnet_naming_style.ipascalcase.required_prefix = I
+dotnet_naming_style.ipascalcase.capitalization = pascal_case
+dotnet_naming_style.tpascalcase.required_prefix = T
+dotnet_naming_style.tpascalcase.capitalization = pascal_case
+dotnet_naming_style._camelcase.required_prefix = _
+dotnet_naming_style._camelcase.capitalization = camel_case
+dotnet_naming_style.camelcase.capitalization = camel_case
+dotnet_naming_style.s_camelcase.required_prefix = s_
+dotnet_naming_style.s_camelcase.capitalization = camel_case
+# Resharper / Rider
+resharper_csharp_object_creation_when_type_evident = explicitly_typed
+resharper_csharp_object_creation_when_type_not_evident = explicitly_typed
+resharper_apply_auto_detected_rules = false
+resharper_autodetect_indent_settings = false
+resharper_braces_for_for = required
+resharper_braces_for_foreach = required
+resharper_braces_for_ifelse = required
+resharper_braces_for_while = required
+resharper_braces_redundant = false
+csharp_indent_nested_usings_stmt = false
+csharp_indent_nested_fixed_stmt = false
+csharp_indent_nested_lock_stmt = false
+csharp_indent_nested_for_stmt = true
+csharp_indent_nested_foreach_stmt = true
+csharp_indent_nested_while_stmt = true
+csharp_wrap_after_declaration_lpar = true
+csharp_wrap_parameters_style = chop_if_long
+csharp_max_initializer_elements_on_line = 0
+csharp_max_array_initializer_elements_on_line = 0
+resharper_csharp_wrap_object_and_collection_initializer_style = chop_always
csharp_braces_for_for = required
csharp_braces_for_foreach = required
csharp_braces_for_ifelse = required
csharp_braces_for_while = required
csharp_use_heuristics_for_body_style = false
-csharp_keep_existing_attribute_arrangement = false
csharp_place_attribute_on_same_line = never
-csharp_wrap_after_declaration_lpar = true
-csharp_wrap_parameters_style = chop_if_long
csharp_wrap_before_comma = false
# var preferences
csharp_for_built_in_types = use_var_when_evident
csharp_for_simple_types = use_var_when_evident
csharp_for_other_types = use_var_when_evident
-
-[{*.yaml, *.yml}]
-indent_size = 2
-trim_trailing_whitespace = true
-insert_final_newline = false
-max_line_length = off
+# Arrangement of attributes
+csharp_keep_existing_attribute_arrangement = false
+csharp_place_type_attribute_on_same_line = false
+csharp_place_method_attribute_on_same_line = false
+csharp_place_accessorholder_attribute_on_same_line = false
+csharp_place_accessor_attribute_on_same_line = false
+csharp_place_field_attribute_on_same_line = false
+# Diagnostics
+# CA1054: URI parameters should not be strings
+# A type declares a method with a string parameter whose name contains "uri", "Uri", "urn", "Urn", "url", or "Url", and the type does not declare a corresponding overload that takes a System.Uri parameter.
+dotnet_diagnostic.CA1054.severity = suggestion
+# CA1055: URI return values should not be strings
+# The name of a method contains "uri", "Uri", "urn", "Urn", "url", or "Url", and the method returns a string.
+dotnet_diagnostic.CA1055.severity = suggestion
+# CA1056: URI properties should not be strings
+# A type declares a string property whose name contains "uri", "Uri", "urn", "Urn", "url", or "Url".
+dotnet_diagnostic.CA1056.severity = suggestion
+# CA1200: Avoid using cref tags with a prefix
+# The cref tag in an XML documentation comment uses a prefix.
+dotnet_diagnostic.CA1200.severity = suggestion
+# CA1716: Identifiers should not match keywords
+# The name of a namespace, type, or virtual or interface member matches a reserved keyword in a programming language.
+dotnet_diagnostic.CA1716.severity = suggestion
+# CA1721: Property names should not match get methods
+# The name of a member starts with 'Get' and otherwise matches the name of a property. For example, a type that contains a method that's named 'GetColor' and a property that's named 'Color' cause a rule violation
+dotnet_diagnostic.CA1721.severity = none
+# CA1819: Properties should not return arrays
+# A property returns an array.
+dotnet_diagnostic.CA1819.severity = suggestion
+# CA2007: Do not directly await a Task
+# An asynchronous method awaits a Task directly.
+dotnet_diagnostic.CA2007.severity = none
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index a8b7688..d57d8c0 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -54,10 +54,10 @@ jobs:
fi
echo "version_with_suffix_dst=${version_with_suffix}" >> $GITHUB_ENV
echo "has_suffix_dst=${has_suffix}" >> $GITHUB_ENV
- - name: Setup .NET Core SDK 7.0.100
+ - name: Setup .NET Core SDK 7.0.400
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 7.0.100
+ dotnet-version: 7.0.400
- name: Checkout source branch back
uses: actions/checkout@v3
with:
@@ -107,14 +107,14 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- - name: Setup .NET Core SDK 6.0.403
+ - name: Setup .NET Core SDK 6.0.413
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 6.0.403
- - name: Setup .NET Core SDK 7.0.100
+ dotnet-version: 6.0.413
+ - name: Setup .NET Core SDK 7.0.400
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 7.0.100
+ dotnet-version: 7.0.400
- name: Create coverage directory and promote absolute paths to env
shell: bash
run: |
diff --git a/.github/workflows/push_to_main.yml b/.github/workflows/push_to_main.yml
index 241dae3..362e799 100644
--- a/.github/workflows/push_to_main.yml
+++ b/.github/workflows/push_to_main.yml
@@ -44,14 +44,14 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- - name: Setup .NET Core SDK 6.0.403
+ - name: Setup .NET Core SDK 6.0.413
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 6.0.403
- - name: Setup .NET Core SDK 7.0.100
+ dotnet-version: 6.0.413
+ - name: Setup .NET Core SDK 7.0.400
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 7.0.100
+ dotnet-version: 7.0.400
- name: Create coverage directory and promote absolute paths to env
shell: bash
run: |
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4395cce..9321440 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,14 +14,14 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- - name: Setup .NET Core SDK 6.0.403
+ - name: Setup .NET Core SDK 6.0.413
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 6.0.403
- - name: Setup .NET Core SDK 7.0.100
+ dotnet-version: 6.0.413
+ - name: Setup .NET Core SDK 7.0.400
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 7.0.100
+ dotnet-version: 7.0.400
- name: Create coverage directory and promote absolute paths to env
shell: bash
run: |
diff --git a/README.md b/README.md
index a1a1dda..6d400db 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,15 @@
# Dodo.Primitives
-[![Latest release](https://img.shields.io/badge/nuget-2.0.0-blue?&kill_cache=1)](https://www.nuget.org/packages/Dodo.Primitives/2.0.0)
-[![Coverage Status](https://coveralls.io/repos/github/dodopizza/primitives/badge.svg?branch=refs/tags/2.0.0&kill_cache=1)](https://coveralls.io/github/dodopizza/primitives?branch=refs/tags/2.0.0)
+[![Latest release](https://img.shields.io/badge/nuget-2.0.1-blue?&kill_cache=1)](https://www.nuget.org/packages/Dodo.Primitives/2.0.1)
+[![Coverage Status](https://coveralls.io/repos/github/dodopizza/primitives/badge.svg?branch=refs/tags/2.0.1&kill_cache=1)](https://coveralls.io/github/dodopizza/primitives?branch=refs/tags/2.0.1)
Library provides .NET primitive types:
-- [Uuid](./src/Dodo.Primitives/Uuid.cs)
+- [Uuid](./src/Dodo.Primitives/Uuid.cs)
and utils to work with types:
-- [Hex](./src/Dodo.Primitives/Hex.cs)
+- [Hex](./src/Dodo.Primitives/Hex.cs)
## Project goal
@@ -19,22 +19,22 @@ The main goal is Uuid implementation according to the [RFC4122](https://tools.ie
Our goal is to provide Uuid fully compliant with RFC4122 (big-endian layout) and preserve System.Guid-like behaviour. Also project contains generators to create different Uuid variants. Currently supported variants:
-- Time-based (like [Uuid v1](https://tools.ietf.org/html/rfc4122#section-4.1.3)).
+- Time-based (like [Uuid v1](https://tools.ietf.org/html/rfc4122#section-4.1.3)).
- ```csharp
- var uuid = Uuid.NewTimeBased();
- ```
+ ```csharp
+ var uuid = Uuid.NewTimeBased();
+ ```
-- Time-based, optimized for MySQL.
+- Time-based, optimized for MySQL.
- ```csharp
- var uuid = Uuid.NewMySqlOptimized();
- ```
+ ```csharp
+ var uuid = Uuid.NewMySqlOptimized();
+ ```
- Equals `UUID_TO_BIN(UUID(), 1)` from [MySQL 8.0](https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_uuid-to-bin)
+ Equals `UUID_TO_BIN(UUID(), 1)` from [MySQL 8.0](https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_uuid-to-bin)
## Project documentation
-- [Prerequisites, build and development](https://github.com/dodopizza/primitives/wiki/Prerequisites,-build-and-development)
-- [Benchmarks](https://github.com/dodopizza/primitives/wiki/Benchmarks)
+- [Prerequisites, build and development](https://github.com/dodopizza/primitives/wiki/Prerequisites,-build-and-development)
+- [Benchmarks](https://github.com/dodopizza/primitives/wiki/Benchmarks)
diff --git a/global.json b/global.json
index 6545580..e944ed0 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
- "sdk": {
- "version": "7.0.100",
- "rollForward": "latestPatch"
- }
+ "sdk": {
+ "version": "7.0.400",
+ "rollForward": "latestPatch"
+ }
}
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 763b83d..8e6cff3 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -1,6 +1,6 @@
- 2.0.0
+ 2.0.1
diff --git a/src/Dodo.Primitives.Benchmarks/Benchmarks/CtorBenchmarks.cs b/src/Dodo.Primitives.Benchmarks/Benchmarks/CtorBenchmarks.cs
index 8001180..d53a71a 100644
--- a/src/Dodo.Primitives.Benchmarks/Benchmarks/CtorBenchmarks.cs
+++ b/src/Dodo.Primitives.Benchmarks/Benchmarks/CtorBenchmarks.cs
@@ -14,7 +14,25 @@ public class CtorBenchmarks
// byte[]
[Benchmark]
[BenchmarkCategory("byte[]")]
- [Arguments(new byte[] { 253, 47, 238, 170, 214, 83, 143, 78, 140, 107, 139, 132, 94, 5, 145, 199 })]
+ [Arguments(new byte[]
+ {
+ 253,
+ 47,
+ 238,
+ 170,
+ 214,
+ 83,
+ 143,
+ 78,
+ 140,
+ 107,
+ 139,
+ 132,
+ 94,
+ 5,
+ 145,
+ 199
+ })]
public Guid guid_CtorByteArray(byte[] guidBytes)
{
return new Guid(guidBytes);
@@ -22,7 +40,25 @@ public Guid guid_CtorByteArray(byte[] guidBytes)
[Benchmark]
[BenchmarkCategory("byte[]")]
- [Arguments(new byte[] { 170, 238, 47, 253, 83, 214, 78, 143, 140, 107, 139, 132, 94, 5, 145, 199 })]
+ [Arguments(new byte[]
+ {
+ 170,
+ 238,
+ 47,
+ 253,
+ 83,
+ 214,
+ 78,
+ 143,
+ 140,
+ 107,
+ 139,
+ 132,
+ 94,
+ 5,
+ 145,
+ 199
+ })]
public Uuid uuid_CtorByteArray(byte[] uuidBytes)
{
return new Uuid(uuidBytes);
@@ -31,7 +67,25 @@ public Uuid uuid_CtorByteArray(byte[] uuidBytes)
// ReadOnlySpan
[Benchmark(OperationsPerInvoke = 16)]
[BenchmarkCategory("ReadOnlySpan")]
- [Arguments(new byte[] { 253, 47, 238, 170, 214, 83, 143, 78, 140, 107, 139, 132, 94, 5, 145, 199 })]
+ [Arguments(new byte[]
+ {
+ 253,
+ 47,
+ 238,
+ 170,
+ 214,
+ 83,
+ 143,
+ 78,
+ 140,
+ 107,
+ 139,
+ 132,
+ 94,
+ 5,
+ 145,
+ 199
+ })]
[SuppressMessage("ReSharper", "ObjectCreationAsStatement")]
public void guid_CtorReadOnlySpan(byte[] guidBytes)
{
@@ -59,7 +113,25 @@ public void guid_CtorReadOnlySpan(byte[] guidBytes)
[Benchmark(OperationsPerInvoke = 16)]
[BenchmarkCategory("ReadOnlySpan")]
- [Arguments(new byte[] { 170, 238, 47, 253, 83, 214, 78, 143, 140, 107, 139, 132, 94, 5, 145, 199 })]
+ [Arguments(new byte[]
+ {
+ 170,
+ 238,
+ 47,
+ 253,
+ 83,
+ 214,
+ 78,
+ 143,
+ 140,
+ 107,
+ 139,
+ 132,
+ 94,
+ 5,
+ 145,
+ 199
+ })]
[SuppressMessage("ReSharper", "ObjectCreationAsStatement")]
public void uuid_CtorReadOnlySpan(byte[] uuidBytes)
{
diff --git a/src/Dodo.Primitives.Benchmarks/Benchmarks/ImplementedInterfacesBenchmarks.cs b/src/Dodo.Primitives.Benchmarks/Benchmarks/ImplementedInterfacesBenchmarks.cs
index 23f64ab..6271a76 100644
--- a/src/Dodo.Primitives.Benchmarks/Benchmarks/ImplementedInterfacesBenchmarks.cs
+++ b/src/Dodo.Primitives.Benchmarks/Benchmarks/ImplementedInterfacesBenchmarks.cs
@@ -46,22 +46,38 @@ public IEnumerable UuidArgs()
public IEnumerable