mirror of
https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities.git
synced 2026-09-04 09:06:31 +02:00
Fixed print method
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -3,6 +3,7 @@
|
||||
> Provides useful C# methods.
|
||||
|
||||
## Wiki
|
||||
|
||||
* [Home](https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities/wiki/Home)
|
||||
* [Install](https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities/wiki/Install)
|
||||
* Features
|
||||
|
||||
@@ -1,24 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Stone_Red_Utilities.RandomExtentions;
|
||||
using Stone_Red_Utilities.CollectionExtentions;
|
||||
|
||||
namespace Stone_Red_C_Sharp_Utilities_Test
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
private enum MyEnum
|
||||
{
|
||||
a,
|
||||
b,
|
||||
c
|
||||
}
|
||||
|
||||
private static void Main()
|
||||
{
|
||||
Random rnd = new Random();
|
||||
MyEnum randomItem = rnd.NextEnum(new MyEnum());
|
||||
Console.WriteLine(randomItem);
|
||||
string[] arr = { "aa", "bb", "cc" };
|
||||
arr.Print();
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -8,13 +8,13 @@
|
||||
".NETCoreApp,Version=v5.0": {
|
||||
"Stone_Red-C-Sharp-Utilities-Test/1.0.0": {
|
||||
"dependencies": {
|
||||
"Stone_Red-C-Sharp-Utilities": "1.0.2"
|
||||
"Stone_Red-C-Sharp-Utilities": "1.0.2.1"
|
||||
},
|
||||
"runtime": {
|
||||
"Stone_Red-C-Sharp-Utilities-Test.dll": {}
|
||||
}
|
||||
},
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2.1": {
|
||||
"runtime": {
|
||||
"Stone_Red-C-Sharp-Utilities.dll": {}
|
||||
}
|
||||
@@ -27,7 +27,7 @@
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2.1": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -71,7 +71,7 @@
|
||||
<summary>
|
||||
Prints all items of an <see cref="T:System.Collections.Generic.IEnumerable`1"/>
|
||||
</summary>
|
||||
<param name="list"></param>
|
||||
<param name="collection"></param>
|
||||
<param name="delimiter"></param>
|
||||
<param name="printToDebugConsole"></param>
|
||||
</member>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
+3
-3
@@ -64,12 +64,12 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.202\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj": {
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.2.1",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||
"projectName": "Stone_Red-C-Sharp-Utilities",
|
||||
@@ -124,7 +124,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.202\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net5.0": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2.1": {
|
||||
"type": "project",
|
||||
"framework": ".NETStandard,Version=v2.1",
|
||||
"compile": {
|
||||
@@ -15,7 +15,7 @@
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2.1": {
|
||||
"type": "project",
|
||||
"path": "../Stone_Red-C-Sharp-Utilities/Stone_Red-C-Sharp-Utilities.csproj",
|
||||
"msbuildProject": "../Stone_Red-C-Sharp-Utilities/Stone_Red-C-Sharp-Utilities.csproj"
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"net5.0": [
|
||||
"Stone_Red-C-Sharp-Utilities >= 1.0.2"
|
||||
"Stone_Red-C-Sharp-Utilities >= 1.0.2.1"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
@@ -91,7 +91,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.202\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "OE733x2kCFUFigdEryLyPpVY2ngQ6/PQDu7juyoQHwLLTXM7YAGkcsOPZ/6G+ZWn2UFomAhpve/dSa8BSDzhAA==",
|
||||
"dgSpecHash": "NeCYdZewH6fNanQP+zkM3RezZexyXY/n2C/0p/0pM8z68CQJ1pDcJ+IXp5xEPCodvU0P8joEhCwg5L/MxmPUCg==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities-Test\\Stone_Red-C-Sharp-Utilities-Test.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace Stone_Red_Utilities.CollectionExtentions
|
||||
/// <summary>
|
||||
/// Prints all items of an <see cref="IEnumerable{T}"/>
|
||||
/// </summary>
|
||||
/// <param name="list"></param>
|
||||
/// <param name="collection"></param>
|
||||
/// <param name="delimiter"></param>
|
||||
/// <param name="printToDebugConsole"></param>
|
||||
public static void Print<T>(this IEnumerable<T> collection, char delimiter = ',', bool printToDebugConsole = false)
|
||||
@@ -55,11 +55,11 @@ namespace Stone_Red_Utilities.CollectionExtentions
|
||||
}
|
||||
else if (printToDebugConsole)
|
||||
{
|
||||
Debug.Write(item.ToString() + (i < length - 1 ? split : string.Empty));
|
||||
Debug.Write(item.ToString() + (i < length ? split : string.Empty));
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.Write(item.ToString() + (i < length - 1 ? split : string.Empty));
|
||||
Console.Write(item.ToString() + (i < length ? split : string.Empty));
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<PublishDir>bin\Release\netstandard2.1\publish\</PublishDir>
|
||||
<PublishProtocol>FileSystem</PublishProtocol>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
@@ -12,9 +12,9 @@
|
||||
<NeutralLanguage>en</NeutralLanguage>
|
||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||
<AssemblyVersion>1.0.2.0</AssemblyVersion>
|
||||
<FileVersion>1.0.2.0</FileVersion>
|
||||
<Version>1.0.2.0</Version>
|
||||
<AssemblyVersion>1.0.2.1</AssemblyVersion>
|
||||
<FileVersion>1.0.2.1</FileVersion>
|
||||
<Version>1.0.2.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<_LastSelectedProfileId>C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -71,7 +71,7 @@
|
||||
<summary>
|
||||
Prints all items of an <see cref="T:System.Collections.Generic.IEnumerable`1"/>
|
||||
</summary>
|
||||
<param name="list"></param>
|
||||
<param name="collection"></param>
|
||||
<param name="delimiter"></param>
|
||||
<param name="printToDebugConsole"></param>
|
||||
</member>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+2
-2
@@ -7,7 +7,7 @@
|
||||
"targets": {
|
||||
".NETStandard,Version=v2.1": {},
|
||||
".NETStandard,Version=v2.1/": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2.0": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2.1": {
|
||||
"runtime": {
|
||||
"Stone_Red-C-Sharp-Utilities.dll": {}
|
||||
}
|
||||
@@ -15,7 +15,7 @@
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2.0": {
|
||||
"Stone_Red-C-Sharp-Utilities/1.0.2.1": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
-1
@@ -71,7 +71,7 @@
|
||||
<summary>
|
||||
Prints all items of an <see cref="T:System.Collections.Generic.IEnumerable`1"/>
|
||||
</summary>
|
||||
<param name="list"></param>
|
||||
<param name="collection"></param>
|
||||
<param name="delimiter"></param>
|
||||
<param name="printToDebugConsole"></param>
|
||||
</member>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>Stone_Red-C-Sharp-Utilities</id>
|
||||
<version>1.0.2.1</version>
|
||||
<authors>Stone_Red</authors>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<license type="file">LICENSE</license>
|
||||
<licenseUrl>https://aka.ms/deprecateLicenseUrl</licenseUrl>
|
||||
<description>Adds useful methods</description>
|
||||
<tags>ExtensionMethods, Methods, Extention, Console, Table, Print, C#</tags>
|
||||
<repository url="https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities" />
|
||||
<dependencies>
|
||||
<group targetFramework=".NETStandard2.1" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Release\netstandard2.1\Stone_Red-C-Sharp-Utilities.dll" target="lib\netstandard2.1\Stone_Red-C-Sharp-Utilities.dll" />
|
||||
<file src="C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Release\netstandard2.1\Stone_Red-C-Sharp-Utilities.xml" target="lib\netstandard2.1\Stone_Red-C-Sharp-Utilities.xml" />
|
||||
<file src="C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\LICENSE" target="LICENSE" />
|
||||
</files>
|
||||
</package>
|
||||
+3
-3
@@ -14,11 +14,11 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Stone_Red")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyDescriptionAttribute("Adds useful methods")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.2.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.2.0")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.2.1")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.2.1")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Stone_Red-C-Sharp-Utilities")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Stone_Red-C-Sharp-Utilities")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.2.0")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.2.1")]
|
||||
[assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities")]
|
||||
[assembly: System.Resources.NeutralResourcesLanguageAttribute("en")]
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
aa0cd71b478a5f28a31162c6216cbaa1e9fee208
|
||||
7050d59067f2c4d7fb2c393d24fc7d30560227c7
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+2
-2
@@ -5,7 +5,7 @@
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj": {
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.2.1",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||
"projectName": "Stone_Red-C-Sharp-Utilities",
|
||||
@@ -60,7 +60,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.202\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.2.1",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||
"projectName": "Stone_Red-C-Sharp-Utilities",
|
||||
@@ -68,7 +68,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.202\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "oqE7ytXXja7A4X19FPYpIr24r8pTIwmMGySP3aKQeXhtnb8nPOvjS80bdEo7RyZVR7zhzO5YS/7coM1Q8pxexA==",
|
||||
"dgSpecHash": "p4c3IZ9yAUJ67kieuETabF5CDiZOQrx5HZrwcxLn1ewQ4upa2wfnGjETbLHe0eiwv/Y/p0wbkqpAYMCLl3qfWA==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
|
||||
Reference in New Issue
Block a user