摘要:
添加Microsoft.ServiceModel.Channels.Mail.dll Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll public class ExchangeMailManage { public static... 阅读全文
摘要:
public class TxtFileManage { public static void Save(string txt) { try { FileStream fileStream = new FileStream(CommonStatic.EmailTxtFilePath, FileMode.OpenOrCreate,FileAccess.ReadWrite,FileShare.ReadWrite); StreamWriter sw = new StreamWriter(fileStream); sw.WriteLine(ReadFile() + "\n" + t 阅读全文
摘要:
public class CommonTools { private static String EncodeKey="Simon"; public static Object Copy(Object source, Object item) { Type t = source.GetType(); foreach (PropertyInfo property in t.GetProperties()) { PropertyInfo pro = t.GetProperty(property.Name); if (pro != null && property 阅读全文