91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-14
  • 語言: C/C++
  • 標簽: cmroute??秒級導入??

資源簡介

cmroute.dll在多個網卡下無法找到正確網關,又無法自定義;c語言無法改造 所以折騰出c#版本 有需要的拿去

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.ComponentModel.DataAnnotations;
using?System.ComponentModel.DataAnnotations.Schema;
using?System.Data;
using?System.Data.Common;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?Newtonsoft.Json;
using?Newtonsoft.Json.Converters;
using?System.Data.Entity;
using?System.Data.Entity.Core.EntityClient;
using?System.Data.Entity.Infrastructure;
using?System.Data.SqlClient;
using?System.Dynamic;
using?System.IO;
using?System.Net;
using?System.Reflection;
using?System.Reflection.Emit;
using?System.Runtime.InteropServices;
using?WM.Common;


namespace?TEST
{
????

???

????????class?Program
????{
????????//常用文件名稱



??????
????????const?string?GateWay?=?“192.168.0.1“;
????????public?static?void?Main(string[]?args)
????????{
?????????

????????????SpiderChinaIp?spider?=?new?SpiderChinaIp();
????????????List?list?=?spider.Start();


????????????Console.WriteLine(“開始創建路由..大概需要1分鐘...“);

????????????list.AsEnumerable().Select(route?=>
????????????{
????????????????//?RouteTableManager.DeleteIpForwardEntry(IPAddress.Parse(route.Ip));
????????????????//?Console.WriteLine(“創建路由“?+?route.Ip);
????????????????RouteTableManager.CreateIpForwardEntry(
??????????????????IPAddress.Parse(route.Ip)
??????????????????IPAddress.Parse(route.Mask)
??????????????????IPAddress.Parse(GateWay)?50);
????????????????return?route;
????????????}).ToList();

????????????Console.WriteLine(“創建完成..“);
????????????Console.ReadKey();
????????}

????????????PropertyDescriptorCollection?props?=?TypeDescriptor.GetProperties(typeof(T));
????????????DataTable?table?=?new?DataTable();
????????????for?(int?i?=?0;?i?????????????{
????????????????PropertyDescriptor?prop?=?props[i];
????????????????if?(prop.PropertyType.IsGenericType?&&prop.PropertyType.GetGenericTypeDefinition()?==?typeof?(Nullable<>))
????????????????????table.Columns.Add(prop.Name?prop.PropertyType.GetGenericArguments()[0]);
????????????????else
????????????????{
????????????????????table.Columns.Add(prop.Name?prop.PropertyType);
????????????????????table.Columns[prop.Name].AllowDBNull?=?false;
????????????????}
????????????}
????????????object[]?values?=?new?object[props.Count];
????????????foreach?(T?item?in?data)
????????????{
????????????????for?(int?i?=?0;?i?????????????????{
????????????????????values[i]?=?props[i].GetValue(item);
????????????????}
????????????????table.Rows.Add(values);
????????????}
????????????return?table;
????????}

???
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2763??2018-05-03?14:08??Program.cs
?????文件???????25290??2018-01-25?15:24??RouteTableManager.cs
?????文件????????3216??2018-05-03?14:09??SpiderChinaIp.cs

評論

共有 條評論

相關資源