![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习-C#
小熙
酱油皇后
展开
-
C#自用获取本机IP,MAC方法
//using System.Diagnostics;//using System.IO;//using System.Net.NetworkInformation;//using System.Net.Sockets; #region 获得本机MAC地址 /// /// 通过DOS命令获得MAC地址原创 2012-05-23 13:25:20 · 555 阅读 · 0 评论 -
C#多级文件夹及文件的zip压缩解压
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text转载 2011-08-30 12:00:05 · 822 阅读 · 0 评论 -
C# System.Environment
选择项目->右键->属性->调试->命令行参数namespace CsharpStudy{ class Program { static void Main(string[] args) { Console.WriteLine("循环调用命令行参数"); foreach (str原创 2015-08-22 23:56:17 · 1035 阅读 · 1 评论 -
JSON序列化反序列化
private void Test() { Person p = new Person { PId = 1, Pname = "测试" }; string SerializeStr = ScriptSerialize(p); Person p2 = ScriptDeserialize(Serialize转载 2016-03-18 15:33:16 · 233 阅读 · 0 评论 -
UpdatePanel学习
转载 2016-03-18 15:38:28 · 229 阅读 · 0 评论 -
排序整理
int[] arr = { 1, 9, 0, 5, 6 };Sort(ref arr);/// /// 冒泡排序(升序降序可再优化)/// /// 数组private void Sort(ref int[] sortArray){ bool swap = true; while (swap) { swap =原创 2016-03-18 16:09:33 · 258 阅读 · 0 评论 -
Http上传文件
public static string HttpUploadFile(string url, string path) { string content = string.Empty; try { // 设置参数 HttpWebReq转载 2016-10-09 09:15:28 · 426 阅读 · 0 评论