2021年4月6日
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Runtime.Caching; using System.Text.RegularExpression
阅读全文
posted @ 2021-04-06 10:20
A菜鸟
阅读(159)
推荐(0)
2020年12月7日
摘要:
System.Data.DataTable dt = _CORACLELogisticsData.GetDataTable("select PORTENG from P_Port order by PORTENG "); //System.Data.DataTable dt = _CORACLEDa
阅读全文
posted @ 2020-12-07 15:20
A菜鸟
阅读(747)
推荐(0)
2020年6月8日
摘要:
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpr
阅读全文
posted @ 2020-06-08 14:30
A菜鸟
阅读(487)
推荐(0)
2020年5月13日
摘要:
/// <summary> /// 用远程地址获取文件流 /// </summary> /// <param name="path">URL</param> /// <returns></returns> private byte[] GetUrlMemoryStream(string path)
阅读全文
posted @ 2020-05-13 16:32
A菜鸟
阅读(2396)
推荐(0)
2020年4月24日
摘要:
后台接口返回字节数组,先base64编码传输 前台js拿到数据进行base64解码,转成二进制流,把数据流转换成一个URL,再模拟点击下载
阅读全文
posted @ 2020-04-24 16:20
A菜鸟
阅读(4209)
推荐(0)
2020年1月16日
摘要:
using System;using System.Collections.Generic;using System.IO;using System.Net.Mail;using System.Net.Mime;using System.Text;using System.Xml; namespac
阅读全文
posted @ 2020-01-16 15:23
A菜鸟
阅读(431)
推荐(0)
摘要:
//实例化一个PdfDocument对象 PdfDocument doc = new PdfDocument(); //加载PDF文档 doc.LoadFromFile("测试文档.pdf"); //实例化一个StringBuilder 对象 StringBuilder content = new
阅读全文
posted @ 2020-01-16 15:21
A菜鸟
阅读(9059)
推荐(1)
2019年4月2日
摘要:
using System; using System.Text; using System.Web; using System.IO; namespace DotNet.Utilities { public class FileOperate { #region 写文件 protected void Write_Txt(string FileName, string Co...
阅读全文
posted @ 2019-04-02 18:57
A菜鸟
阅读(241)
推荐(0)
摘要:
委托的概念 委托太常见了,能灵活运用可以使你在编程中游刃有余。 简单说它就是一个能把方法当参数传递的对象,而且还知道怎么调用这个方法,同时也是粒度更小的“接口”(约束了指向方法的签名) 委托的简单使用 一个委托类型定义了该类型的实例能调用的一类方法,这些方法含有同样的返回类型和同样参数(类型和个数相
阅读全文
posted @ 2019-04-02 18:41
A菜鸟
阅读(218)
推荐(0)
摘要:
反射的作用 (1)使用Assembly定义和加载程序集,加载在程序集清单中列出模块,以及从此程序集中查找类型并创建该类型的实例。 (2)使用Module了解包含模块的程序集以及模块中的类等,还可以获取在模块上定义的所有全局方法或其他特定的非全局方法。 (3)使用ConstructorInfo了解构造
阅读全文
posted @ 2019-04-02 18:39
A菜鸟
阅读(138)
推荐(0)