Upgrade to .net 7
This commit is contained in:
parent
a1c5166114
commit
b25b86add2
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<RootNamespace>DiIiS_NA</RootNamespace>
|
||||
<Company>DiIiS Team</Company>
|
||||
<Copyright>iEvE</Copyright>
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
//Blizzless Project 2022
|
||||
//Blizzless Project 2022
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
//Blizzless Project 2022
|
||||
using System.IO;
|
||||
|
||||
namespace DiIiS_NA.Core.Extensions
|
||||
{
|
||||
public static class DeepCopy
|
||||
{
|
||||
public static T DeepClone<T>(T obj)
|
||||
{
|
||||
using (var ms = new MemoryStream())
|
||||
{
|
||||
var formatter = new BinaryFormatter();
|
||||
formatter.Serialize(ms, obj);
|
||||
ms.Position = 0;
|
||||
|
||||
return (T)formatter.Deserialize(ms);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Configurations>Debug;Release;github</Configurations>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
user.block.title