操作系统防火墙

作者:追风剑情 发布于:2019-12-12 21:57 分类:C#

示例 using System; using System.Net; using System.Net.NetworkInformation; using System.Text; //64位系统: 需要引入C:\Windows\SysWOW64\FirewallAPI.dll //32位系统: 需要引入C:\Windows\System32\FirewallAPI.dll ...

阅读全文>>

标签: C#

评论(0) 浏览(2824)

示例:计算屏幕分辨率比例

作者:追风剑情 发布于:2019-12-12 14:37 分类:C#

一、创建WPF项目 MainWindow.xaml <Window x:Class="Resolution.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.co...

阅读全文>>

标签: C#

评论(0) 浏览(2810)

ClientWebSocket

作者:追风剑情 发布于:2019-11-13 14:34 分类:C#

参考 https://www.cnblogs.com/Jason-c/p/11117002.html https://segmentfault.com/a/1190000014582485?utm_source=tag-newest 微软官方文档 ClientWebSocket类 WebSocket客户端,用来发送或接收WebSocket消息。如果你的服务所在的域是...

阅读全文>>

标签: C#

评论(0) 浏览(4355)

IPAddress、IPHostEntry、IPEndPoint、DNS

作者:追风剑情 发布于:2019-11-12 20:43 分类:C#

示例: using System; using System.Net; using System.Net.NetworkInformation; using System.Text; namespace ConsoleApp6 { class Program { static void Main(string[] args) ...

阅读全文>>

标签: C#

评论(0) 浏览(3348)

Ping及相关类

作者:追风剑情 发布于:2019-11-12 19:41 分类:C#

示例 using System; using System.Net; using System.Net.NetworkInformation; using System.Text; namespace ConsoleApp6 { class Program { static void Main(string[] args) ...

阅读全文>>

标签: C#

评论(0) 浏览(2356)

枚举(Enum)

作者:追风剑情 发布于:2019-11-1 15:56 分类:C#

示例一:定义枚举类型 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { s...

阅读全文>>

标签: C#

评论(0) 浏览(2216)

System.Object

作者:追风剑情 发布于:2019-10-10 18:10 分类:C#

官方文档 https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=net-5.0 示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thre...

阅读全文>>

标签: C#

评论(0) 浏览(2714)

一个简易聊天室

作者:追风剑情 发布于:2019-9-16 15:39 分类:C#

一、工程结构 配置条件编译: [生成]->[配置管理器] 二、代码 UniNetwork.cs using System; using System.Collections.Generic; using System.Net.Sockets; using System.IO; /// <...

阅读全文>>

标签: C#

评论(0) 浏览(3948)

离线安装Visual Studio 2017

作者:追风剑情 发布于:2019-9-9 11:15 分类:C#

参考 https://blog.csdn.net/hellkyle/article/details/80759961 以社区版为例: 1、下载vs_Community.exe (官方下载) 2、下载VS2017离线安装包 (西西软件下载),文件比较大,推荐使用PanDownload工具下载 3、依次安装证书(一直点下一步即可) ...

阅读全文>>

标签: C#

评论(0) 浏览(2704)

WPF—DataTemplate

作者:追风剑情 发布于:2019-9-2 16:48 分类:C#

示例 MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas...

阅读全文>>

标签: C#

评论(0) 浏览(2437)

WPF—Style实现继承

作者:追风剑情 发布于:2019-8-27 16:14 分类:C#

示例 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/express...

阅读全文>>

标签: C#

评论(0) 浏览(2430)

WPF—ControlTemplate

作者:追风剑情 发布于:2019-8-27 14:19 分类:C#

示例 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/express...

阅读全文>>

标签: C#

评论(0) 浏览(3222)

WPF—模板Template

作者:追风剑情 发布于:2019-8-27 12:16 分类:C#

示例:渐变按钮 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/ex...

阅读全文>>

标签: C#

评论(0) 浏览(2921)

WPF—定义Style

作者:追风剑情 发布于:2019-8-27 10:41 分类:C#

MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sche...

阅读全文>>

标签: C#

评论(0) 浏览(2750)

TCP解包与封包

作者:追风剑情 发布于:2019-8-26 16:32 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestConsole { class Program { static void Main(strin...

阅读全文>>

标签: C#

评论(0) 浏览(3490)

TcpClient

作者:追风剑情 发布于:2019-8-26 11:57 分类:C#

示例:聊天室 服务端代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using System.Net; using System.Net.So...

阅读全文>>

标签: C#

评论(0) 浏览(3213)

WPF—数据双向绑定

作者:追风剑情 发布于:2019-8-23 18:29 分类:C#

MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema...

阅读全文>>

标签: C#

评论(0) 浏览(4182)

WPF—DispatcherTimer

作者:追风剑情 发布于:2019-8-20 21:55 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(2370)

WPF—截屏

作者:追风剑情 发布于:2019-8-20 17:01 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(3074)

Task.Delay()

作者:追风剑情 发布于:2019-8-20 11:00 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(2105)

WPF—延迟执行

作者:追风剑情 发布于:2019-8-19 22:43 分类:C#

示例: 参考https://www.cnblogs.com/qldsrx/archive/2013/02/22/2922682.html using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System....

阅读全文>>

标签: C#

评论(0) 浏览(3303)

WPF—ComboBox

作者:追风剑情 发布于:2019-8-19 12:05 分类:C#

示例 MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="ht...

阅读全文>>

标签: C#

评论(0) 浏览(2049)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号