摘要:
public static class DataContractHelper { public static void ToDCFile(this T obj, string path) { //路径 FileStream fs = new FileStream(path, FileMode.C... 阅读全文
摘要:
public static class BinarySerializationHelper { public static void ToBinaryFile(this T tempSerializeList, string path) // 二进制序列化 { //路径 var fs = new FileStream(path, Fil... 阅读全文
摘要:
namespace Test { using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using Test.Share; using Microshaoft; public class ... 阅读全文
摘要:
转载自 :https://blog.csdn.net/jiankunking/article/details/50016043 using System; using System.Collections.Generic; using System.Linq; using System.Text; 阅读全文
摘要:
#region WPF发送和接收win32消息 public const int WM_GETTEXT = 0x0D; public const int WM_SETTEXT = 0x0C; public const int WM_SIZEING = 0x0214; public const int WM_COPYDATA = 0x... 阅读全文
摘要:
public static class XmlHelper { public static T FromXmlFile(this string filePath) where T : new() { T result = new T(); if (!File.Exists(filePath))... 阅读全文