diff --git a/Program.cs b/Program.cs
index cf66754..e9c62d6 100644
--- a/Program.cs
+++ b/Program.cs
@@ -117,6 +117,12 @@ class Program {
char[] chars = stringa.ToCharArray();
byte[] bytes = new byte[chars.Length];
+ for (int i = 0; i < chars.Length; i++) { //se il valore intero del singolo char è superiore al valore massimo di byte
+ if (Convert.ToUInt64(chars[i]) > Byte.MaxValue) {
+ chars[i] = Convert.ToChar(200); //lo sostituisco con un carattere a caso che è convertibile in byte, per non rompere la conversione successiva
+ }
+ }
+
for (int i = 0; i < chars.Length; i++) {
bytes[i] = Convert.ToByte(chars[i]);
}
@@ -219,7 +225,7 @@ class Program {
lettere[j] = p_lettera2;
}
}
-
+
return string.Join("", lettere);
}
diff --git a/bin/Debug/net9.0/strings_2 b/bin/Debug/net9.0/strings_2
index 6654f9e..a09bfdb 100755
Binary files a/bin/Debug/net9.0/strings_2 and b/bin/Debug/net9.0/strings_2 differ
diff --git a/bin/Debug/net9.0/strings_2.dll b/bin/Debug/net9.0/strings_2.dll
index 42f6d64..662f4f9 100644
Binary files a/bin/Debug/net9.0/strings_2.dll and b/bin/Debug/net9.0/strings_2.dll differ
diff --git a/bin/Debug/net9.0/strings_2.pdb b/bin/Debug/net9.0/strings_2.pdb
index 305e94a..9108a72 100644
Binary files a/bin/Debug/net9.0/strings_2.pdb and b/bin/Debug/net9.0/strings_2.pdb differ
diff --git a/obj/Debug/net9.0/apphost b/obj/Debug/net9.0/apphost
index 6654f9e..a09bfdb 100755
Binary files a/obj/Debug/net9.0/apphost and b/obj/Debug/net9.0/apphost differ
diff --git a/obj/Debug/net9.0/ref/strings_2.dll b/obj/Debug/net9.0/ref/strings_2.dll
index 742a551..d1f0fc4 100644
Binary files a/obj/Debug/net9.0/ref/strings_2.dll and b/obj/Debug/net9.0/ref/strings_2.dll differ
diff --git a/obj/Debug/net9.0/refint/strings_2.dll b/obj/Debug/net9.0/refint/strings_2.dll
index 742a551..d1f0fc4 100644
Binary files a/obj/Debug/net9.0/refint/strings_2.dll and b/obj/Debug/net9.0/refint/strings_2.dll differ
diff --git a/obj/Debug/net9.0/strings_2.AssemblyInfo.cs b/obj/Debug/net9.0/strings_2.AssemblyInfo.cs
index b5431b7..971289a 100644
--- a/obj/Debug/net9.0/strings_2.AssemblyInfo.cs
+++ b/obj/Debug/net9.0/strings_2.AssemblyInfo.cs
@@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("strings_2")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c3221a26e7024becb1a0bc5ca23f9d5951939a0e")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c485179de4f282de45beb0f7d4860f49264ae15c")]
[assembly: System.Reflection.AssemblyProductAttribute("strings_2")]
[assembly: System.Reflection.AssemblyTitleAttribute("strings_2")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
-// Generated by the MSBuild WriteCodeFragment class.
+// Generato dalla classe WriteCodeFragment di MSBuild.
diff --git a/obj/Debug/net9.0/strings_2.AssemblyInfoInputs.cache b/obj/Debug/net9.0/strings_2.AssemblyInfoInputs.cache
index 0b139e9..7692be1 100644
--- a/obj/Debug/net9.0/strings_2.AssemblyInfoInputs.cache
+++ b/obj/Debug/net9.0/strings_2.AssemblyInfoInputs.cache
@@ -1 +1 @@
-286555a28e2b9519ad213c06727318c7aaa3c8f73011ee3c1eb75939a096b603
+37bc26bc3a12bdfd7035317c818bc790bd05aef4e0e1da67c548b475df3f0a61
diff --git a/obj/Debug/net9.0/strings_2.assets.cache b/obj/Debug/net9.0/strings_2.assets.cache
index 320de29..bbcd06d 100644
Binary files a/obj/Debug/net9.0/strings_2.assets.cache and b/obj/Debug/net9.0/strings_2.assets.cache differ
diff --git a/obj/Debug/net9.0/strings_2.csproj.CoreCompileInputs.cache b/obj/Debug/net9.0/strings_2.csproj.CoreCompileInputs.cache
index 22d4e6b..1e75d67 100644
--- a/obj/Debug/net9.0/strings_2.csproj.CoreCompileInputs.cache
+++ b/obj/Debug/net9.0/strings_2.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-4ef1c6e281a4279efbe6a93ea283d646bf9f249445f7fe51ef3162564a07b622
+db9d59f3f1e01603ca0db2532b95debe9b6ee3fc1ae01815ceaef6628a6d1799
diff --git a/obj/Debug/net9.0/strings_2.dll b/obj/Debug/net9.0/strings_2.dll
index 42f6d64..662f4f9 100644
Binary files a/obj/Debug/net9.0/strings_2.dll and b/obj/Debug/net9.0/strings_2.dll differ
diff --git a/obj/Debug/net9.0/strings_2.pdb b/obj/Debug/net9.0/strings_2.pdb
index 305e94a..9108a72 100644
Binary files a/obj/Debug/net9.0/strings_2.pdb and b/obj/Debug/net9.0/strings_2.pdb differ
diff --git a/obj/project.assets.json b/obj/project.assets.json
index dc146e0..3d87636 100644
--- a/obj/project.assets.json
+++ b/obj/project.assets.json
@@ -44,7 +44,7 @@
"auditLevel": "low",
"auditMode": "direct"
},
- "SdkAnalysisLevel": "9.0.100"
+ "SdkAnalysisLevel": "9.0.200"
},
"frameworks": {
"net9.0": {
@@ -65,7 +65,7 @@
"privateAssets": "all"
}
},
- "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.102/PortableRuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.200/PortableRuntimeIdentifierGraph.json"
}
}
}
diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache
index 5a7d7da..d76972e 100644
--- a/obj/project.nuget.cache
+++ b/obj/project.nuget.cache
@@ -1,6 +1,6 @@
{
"version": 2,
- "dgSpecHash": "0XXWvIaAHRU=",
+ "dgSpecHash": "EUX3oFtxQ78=",
"success": true,
"projectFilePath": "/home/Verde/git/strings_2/strings_2.csproj",
"expectedPackageFiles": [],
diff --git a/obj/strings_2.csproj.nuget.dgspec.json b/obj/strings_2.csproj.nuget.dgspec.json
index 6ff1f69..81d259c 100644
--- a/obj/strings_2.csproj.nuget.dgspec.json
+++ b/obj/strings_2.csproj.nuget.dgspec.json
@@ -38,7 +38,7 @@
"auditLevel": "low",
"auditMode": "direct"
},
- "SdkAnalysisLevel": "9.0.100"
+ "SdkAnalysisLevel": "9.0.200"
},
"frameworks": {
"net9.0": {
@@ -59,7 +59,7 @@
"privateAssets": "all"
}
},
- "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.102/PortableRuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.200/PortableRuntimeIdentifierGraph.json"
}
}
}
diff --git a/obj/strings_2.csproj.nuget.g.props b/obj/strings_2.csproj.nuget.g.props
index 29b3d27..424e2e4 100644
--- a/obj/strings_2.csproj.nuget.g.props
+++ b/obj/strings_2.csproj.nuget.g.props
@@ -7,7 +7,7 @@
/home/Verde/.nuget/packages/
/home/Verde/.nuget/packages/
PackageReference
- 6.12.2
+ 6.13.0