![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#帮助类
steven-c
这个作者很懒,什么都没留下…
展开
-
wpf打开文件对话框、保存文件对话框、选择文件夹对话框
打开文件对话框、保存文件对话框使用Microsoft.Win32的方法选择文件夹对话框使用System.Windows.Forms的方法打开文件对话框//创建一个打开文件的对话框Microsoft.Win32.OpenFileDialog dialog = new Microsoft.Win32.OpenFileDialog(){ Filter = "All Files|*.*"; ...原创 2019-03-27 11:13:20 · 4758 阅读 · 1 评论 -
Xml与实体类的相互转化
public class XmlUtil{ public static object Deserialize(Type type, string xml) { using(StringReader sr = new StringReader(xml)) { XmlSerializer xmldes = new XmlSerializer(Type); return xml...原创 2019-04-11 16:31:12 · 1482 阅读 · 0 评论