![](https://img-blog.csdnimg.cn/20190918140213434.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
编程语言
记录在使用各种编程语言过程中遇到的问题及解决办法
weixin_602852293
这个作者很懒,什么都没留下…
展开
-
WPF x:Name
x:Name 是x命名空间中的Name属性 <TextBox x:Name="ppt" Width="600" Height="300" />dotNetFramwork的控件都有这个属性的,加不加x:都是一样的效果,如果是自定议控件就需要加x:了原创 2021-11-20 15:15:46 · 216 阅读 · 0 评论 -
C# 自定义终端打印位置
C# 自定义终端打印位置设置左边及顶部的位置Console.SetCursorPosition设置左边的位置Console.CursorLeft设置顶部的位置Console.CursorTop原创 2020-02-06 22:12:16 · 562 阅读 · 0 评论 -
C# 正则表达式
表达式: (\w)(\d)\1表式 第一个小括号就是(\w),因此(\w)就会重复一次原创 2020-07-10 13:28:13 · 66 阅读 · 0 评论 -
C# WPF 多线程控制控件内容
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;原创 2021-11-20 14:52:39 · 305 阅读 · 0 评论 -
关闭win10数字签名
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS原创 2020-08-30 19:14:01 · 278 阅读 · 0 评论 -
Watch对类测量代码运行时间
using System;using System.Collections.Generic;using System.Diagnostics;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApp2{ internal class Program { static void Main(string[] args) {原创 2021-11-23 09:13:32 · 177 阅读 · 0 评论 -
C# Lambda表达式多行
TextBox tb = this.ppt as TextBox;this.Dispatcher.Invoke( () => { tb.AppendText(s + " : " + DateTime.Now.ToString("HH:mm:ss")+Environment.NewLine); tb.ScrollToEnd(); });原创 2021-11-20 14:50:57 · 492 阅读 · 0 评论 -
C#关键字in out ref的作用与区别
C#关键字 in out refin函数传参被in关键字修饰后,在函数内部作为只读,不能再被赋值out函数传参被out关键字修饰后,在函数内部使用前必须先赋值,可以使用在函数返回值不为一个或返回值有多个但类型不同的情况下refref在使用上比out的限制小一些,主要区别有1、ref传进去的参数必须在调用前初始化,out不必2、ref传进去的参数在函数内部可以直接使用,而out不可(除非在函数体内部,out参数在使用之前赋值)3、ref传进去的参数在函数内部可以不被修改,但out必须在离开函原创 2021-11-23 09:45:23 · 237 阅读 · 0 评论