Lith vor 10 Monaten
Ursprung
Commit
1d6fc963f8

+ 0 - 63
dotnet/Library/Vit/Vit.Core/Vit.Core/Module/Serialization/Json.Extensions.cs

@@ -1,63 +0,0 @@
-using System;
-using System.Runtime.CompilerServices;
-
-namespace Vit.Core.Module.Serialization
-{
-    public static partial class Json
-    {
-
-        #region object <--> String
-
-        /// <summary>
-        /// T也可为值类型(例如 int?、bool) 
-        /// </summary>
-        /// <typeparam name="T"></typeparam>
-        /// <param name="value"></param>
-        /// <returns></returns>
-        [MethodImpl(MethodImplOptions.AggressiveInlining)]
-        public static string SerializeToString<T>(T value)
-        {
-            return Instance.Serialize<T>(value);
-        }
-
-        /// <summary>
-        /// T也可为值类型(例如 int?、bool) 
-        /// </summary>
-        /// <param name="value"></param>
-        /// <param name="type"></param>
-        /// <returns></returns>
-        [MethodImpl(MethodImplOptions.AggressiveInlining)]
-        public static string SerializeToString(object value, Type type)
-        {
-            return Instance.Serialize(value, type);
-        }
-
-
-
-        /// <summary>
-        /// 使用Newtonsoft反序列化。T也可为值类型(例如 int?、bool) 
-        /// </summary>
-        /// <param name="value"></param>    
-        /// <returns></returns>
-        [MethodImpl(MethodImplOptions.AggressiveInlining)]
-        public static T DeserializeFromString<T>(string value)
-        {
-            return Instance.Deserialize<T>(value);
-        }
-
-        /// <summary>
-        /// 使用Newtonsoft反序列化。T也可为值类型(例如 int?、bool) 
-        /// </summary>
-        /// <param name="value"></param>
-        /// <param name="type"></param>
-        /// <returns></returns>
-        [MethodImpl(MethodImplOptions.AggressiveInlining)]
-        public static object DeserializeFromString(string value, Type type)
-        {
-            return Instance.Deserialize(value, type);
-        }
-
-        #endregion
-
-    }
-}

+ 0 - 4
dotnet/Library/Vit/Vit.Core/Vit.Core/Vit.Core.csproj

@@ -22,14 +22,10 @@
     </PropertyGroup>
 
     <PropertyGroup>
-        <!--<LangVersion>latest</LangVersion>-->
         <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
         <DocumentationFile>bin\Debug\netstandard2.0\Vit.Core.xml</DocumentationFile>
     </PropertyGroup>
 
-    <ItemGroup>
-      <Compile Remove="Module\Serialization\Json.Extensions.cs" />
-    </ItemGroup>
 
 
     <ItemGroup>