logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

c#强制回收内存

GC.Collect();GC.WaitForPendingFinalizers();GC.Collect();主要是测试内存泄漏的时候用,正式代码里不要用

c# Express多种测试代码

using System;using System.Collections.Generic;using System.Linq.Expressions;using System.Reflection;using System.Reflection.Emit;using System.Security.Permissions;public class CodeGenerator{AssemblyBu

#c##linq
c# 反射-获取属性的属性名称和值

自定义树形定义public class AuthorAttribute : Attribute{public AuthorAttribute(String Description_in){//// TODO: Add constructor logic herethis.description = Description_in;//}

c# datagridview表格不排序

for (int i = 0; i < this.dataGridView1.Columns.Count; i++){this.dataGridView1.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable;}

#c#
c#:treeview双击树节点的事件手动绑定

this.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_DoubleClick);private void treeView1_DoubleClick(object sender, TreeNodeMouseClickEventArgs e){//获取节点

#c#
c# treeView失去焦点后,高亮显示

treeView1.HideSelection = False;很多方案里加了重绘,我个人感觉影响刷新效率,所以这个方案我觉得最好

#c#
c# 画拓扑图

RT:我想用C#画一个拓扑图,拓扑图大致是两个交换机互相连接,其他多个计算机连接到交换机1或者2。计算机数量不定,根据用户设置,设置链接交换机的数量。我要检查网路状态,如果不通,将线改变颜色等。用户可以点击网络中的计算机,显示计算机信息。这样的功能有没有一个控件可以方便实现?自己绘图的话太丑了,而且比较麻烦,最好能贴图,网上说VISIO可以,但是Visio控件完全不会…有例子也可以!拓扑图不需要获

#c#
c# ContextMenuStrip显示位置修改

private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;// 参数://sender://作为 System.Windows.Forms.ToolStripDropDownButton 位置的参考点的控件(通常是 System.Windows.Forms.ToolStripDropDown)。////e.X:...

c#怎么改变textbox的大小

你把【多行】属性(即Multiline)设置为True就可以了。点一下TextBox,看到有一个黑色的小三角,点一下他,将Mutiline勾上1.将Textbox改为多行模式,设置MutliLine属性为True,然后屏蔽Enter键。private void txtTest_KeyDown (object sender, KeyEventArgs e){if ((int)e.KeyCode ==

redis del与unlink命令用法及实现

1. DEL 命令 DEL key [key ...]删除指定的一批keys,如果删除中的某些key不存在,则直接忽略。返回值integer-reply: 被删除的keys的数量例子redis&gt; SET key1 "Hello"OKredis&gt; SET key2 "World"OKredis&gt; DEL key1 ke

    共 73 条
  • 1
  • 2
  • 3
  • 8
  • 请选择