-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
238 additions
and
6 deletions.
There are no files selected for viewing
Submodule Abstractions
updated
3 files
+60 −0 | .github/workflows/main.yml | |
+1 −1 | Dgmjr.Abstractions.props | |
+2 −2 | IIdentifiable.cs |
Submodule Enumerations
updated
from 6b0a90 to 8ffb15
Submodule Extensions
updated
from 8f2bf4 to 26e9af
Submodule InterfaceGenerator
updated
4 files
Submodule Microsoft.Net.Global.Json
updated
3 files
+7 −5 | Microsoft.Net.Global.Json.csproj | |
+42 −0 | Microsoft.Net.Global.Json.sln | |
+2 −1 | Sdk.cs |
Submodule Primitives
updated
60 files
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Dgmjr.Primitives" /> | ||
<PackageReference Include="Dgmjr.System.Extensions" Condition="'$(TargetFramework)' != 'netstandard2.0'"/> | ||
<PackageReference Remove="Dgmjr.System.Extensions" Condition="'$(TargetFramework)' == 'netstandard2.0'"/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B283EBC2-E01F-412D-9339-FD56EF114549}" | ||
ProjectSection(SolutionItems) = preProject | ||
..\..\..\Directory.Build.props = ..\..\..\Directory.Build.props | ||
..\..\..\Directory.Build.targets = ..\..\..\Directory.Build.targets | ||
..\..\..\global.json = ..\..\..\global.json | ||
..\..\..\Packages\Versions.Local.props = ..\..\..\Packages\Versions.Local.props | ||
EndProjectSection | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dgmjr.Tuples", "Dgmjr.Tuples.csproj", "{444A4715-9085-4B94-9CEA-60F2125738D6}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Local|Any CPU = Local|Any CPU | ||
Debug|Any CPU = Debug|Any CPU | ||
Testing|Any CPU = Testing|Any CPU | ||
Staging|Any CPU = Staging|Any CPU | ||
Production|Any CPU = Production|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Local|Any CPU.ActiveCfg = Local|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Local|Any CPU.Build.0 = Local|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Testing|Any CPU.ActiveCfg = Testing|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Testing|Any CPU.Build.0 = Testing|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Staging|Any CPU.ActiveCfg = Staging|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Staging|Any CPU.Build.0 = Staging|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Production|Any CPU.ActiveCfg = Local|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Production|Any CPU.Build.0 = Local|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{444A4715-9085-4B94-9CEA-60F2125738D6}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {E15BF735-2E1E-4DFF-8028-7732CC4D2DB9} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: | ||
lastmod: 2023-40-04T12:40:28.5966-04:00Z | ||
date: 2023-40-04T12:40:28.5968-04:00Z | ||
license: MIT | ||
slug: Dgmjr.Tuples-readme | ||
version: | ||
authors: | ||
- dgmjr; | ||
description: Dgmjr.Tuples Readme #TODO: write description for Dgmjr.Tuples Readme | ||
keywords: | ||
- Dgmjr.Tuples | ||
- dgmjr | ||
- dgmjr-io | ||
type: readme | ||
--- | ||
# Dgmjr.Tuples Readme | ||
<!-- TODO: Write the contents of the Dgmjr.Tuples Readme file --> | ||
## Package Description | ||
## Getting Started | ||
## Prerequisites | ||
## Installation | ||
## Usage | ||
## Contributing | ||
## Versioning | ||
Built from [commit on branch at ] | ||
(/tree/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
using System.Security.AccessControl; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Dgmjr.Tuples; | ||
|
||
/// <summary> | ||
/// The uri description tuple. | ||
/// </summary> | ||
public abstract class UriDescriptionTuple : UriStringTuple | ||
{ | ||
/// <summary> | ||
/// Gets the description. | ||
/// </summary> | ||
public virtual string? Description => Item2; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Dgmjr.Tuples.UriDescriptionTuple" /> | ||
/// class. | ||
/// </summary> | ||
/// <param name="uri">The uri.</param> | ||
/// <param name="description">The description.</param> | ||
protected UriDescriptionTuple(uri uri, string? description = null) | ||
: base(uri, description) { } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Dgmjr.Tuples.UriDescriptionTuple" /> | ||
/// class. | ||
/// </summary> | ||
/// <param name="uri">The uri.</param> | ||
/// <param name="description">The description.</param> | ||
protected UriDescriptionTuple(Uri? uri, string? description = null) | ||
: base(System.uri.From(uri), description) { } | ||
|
||
// /// <summary> | ||
// /// Initializes a new instance of the <see cref="T:Dgmjr.Tuples.UriDescriptionTuple" /> | ||
// /// class. | ||
// /// </summary> | ||
// /// <param name="uri">The uri.</param> | ||
// /// <param name="description">The description.</param> | ||
// protected UriDescriptionTuple(string uri, string? description = null) | ||
// : this(TryCreateUriExtensions.ToUri(uri), description) { } | ||
|
||
protected UriDescriptionTuple((uri, string?)? tuple = null) | ||
: base((uri)(tuple?.Item1), tuple?.Item2) { } | ||
|
||
protected UriDescriptionTuple((string?, string?)? tuple = null) | ||
: base(tuple?.Item1, tuple?.Item2) { } | ||
|
||
public static implicit operator string?(UriDescriptionTuple tuple) | ||
{ | ||
return tuple.Uri; | ||
} | ||
|
||
public static implicit operator uri(UriDescriptionTuple tuple) | ||
{ | ||
return tuple.Uri; | ||
} | ||
|
||
public override bool Equals(object? obj) | ||
{ | ||
return obj is UriDescriptionTuple uriDescriptionTuple | ||
&& base.Equals(obj) | ||
&& EqualityComparer<uri>.Default.Equals(base.Item1, uriDescriptionTuple.Item1) | ||
&& base.Item2 == uriDescriptionTuple.Item2 | ||
&& EqualityComparer<uri>.Default.Equals(base.Uri, uriDescriptionTuple.Uri) | ||
&& Description == uriDescriptionTuple.Description; | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return System.HashCode.Combine(base.Uri, Description); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
using System.Security.AccessControl; | ||
using System; | ||
|
||
namespace Dgmjr.Tuples; | ||
|
||
/// <summary> | ||
/// The uri string tuple. | ||
/// </summary> | ||
public abstract class UriStringTuple : Tuple<uri, string?> | ||
{ | ||
/// <summary> | ||
/// Gets the uri. | ||
/// </summary> | ||
public uri Uri => base.Item1; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Dgmjr.Tuples.UriStringTuple" /> class. | ||
/// </summary> | ||
/// <param name="uri">The uri.</param> | ||
/// <param name="value">The value.</param> | ||
protected UriStringTuple(uri uri, string? value) | ||
: base(uri, value) { } | ||
|
||
// /// <summary> | ||
// /// Initializes a new instance of the <see cref="T:Dgmjr.Tuples.UriStringTuple" /> class. | ||
// /// </summary> | ||
// /// <param name="uri">The uri.</param> | ||
// /// <param name="value">The value.</param> | ||
// protected UriStringTuple(Uri uri, string? value = null) | ||
// : this((System.uri.From(uri), value)) | ||
// { | ||
// uri item; | ||
// if (uri is not null) | ||
// { | ||
// string text = uri.ToString(); | ||
// item = ((text != null) ? TryCreateUriExtensions.CreateUri(text, false) : null); | ||
// } | ||
// } | ||
|
||
// /// <summary> | ||
// /// Initializes a new instance of the <see cref="T:Dgmjr.Tuples.UriStringTuple" /> class. | ||
// /// </summary> | ||
// /// <param name="uri">The uri.</param> | ||
// /// <param name="value">The value.</param> | ||
// protected UriStringTuple(string? uri, string? value) | ||
// : this((uri is not null) ? TryCreateUriExtensions.ToUri(uri) : null as uri?, value) { } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Dgmjr.Tuples.UriStringTuple" /> class. | ||
/// </summary> | ||
/// <param name="tuple">The tuple.</param> | ||
protected UriStringTuple(UriStringTuple? tuple = null) | ||
: this((uri)(tuple?.Item1), tuple?.Item2) { } | ||
|
||
protected UriStringTuple((uri, string?)? tuple = null) | ||
: this((uri)(tuple?.Item1), tuple?.Item2) { } | ||
|
||
protected UriStringTuple((string?, string?)? tuple = null) | ||
: this(tuple?.Item1, tuple?.Item2) { } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Dgmjr.Tuples.UriStringTuple" /> class. | ||
/// </summary> | ||
protected UriStringTuple() | ||
: this((uri)null, (string?)null) { } | ||
|
||
public override bool Equals(object? obj) | ||
{ | ||
return obj is UriStringTuple uriStringTuple | ||
&& Uri == uriStringTuple.Uri | ||
&& base.Item2 == uriStringTuple.Item2; | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return System.HashCode.Combine(Uri, base.Item2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[assembly: TypeForwardedTo(typeof(System.uri))] |