上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 30 下一页
摘要: (1) 点击“调试”,选择需要调试的可执行程序 (2) 点击“确定”后,打开程序,再点击“调试”-“窗口”-模块 (3)右键模块,选择“从内存中打开模块” (4)发现,已经可以调试了 阅读全文
posted @ 2023-02-27 16:34 JohnYang819 阅读(1562) 评论(0) 推荐(0)
摘要: C#代码: static void Main(string[] args) { int[] items = new int[] { 0,1,2,3,4}; int m = 3; List<int[]> allCombinations = GetCombinations(items, m); fore 阅读全文
posted @ 2023-02-04 15:33 JohnYang819 阅读(41) 评论(0) 推荐(0)
摘要: C#中的lock lock语法为: private object o = new object();//创建一个对象 public void Work() { lock(o)//锁住这个对象 { //做一些必须按照顺序做的事情 } } 相当于: private object o = new obje 阅读全文
posted @ 2023-01-03 12:56 JohnYang819 阅读(2723) 评论(0) 推荐(0)
摘要: (1)下载DirectXTK项目:https://github.com/microsoft/DirectXTK (2)VS 打开该项目,右键项目,生成依赖性-自定义 (3)勾选MeshContentTask(.targets,.props) (4)右键项目,添加现有项目 (5)添加.obj,或者.d 阅读全文
posted @ 2022-12-05 16:06 JohnYang819 阅读(225) 评论(0) 推荐(0)
摘要: public class PChangeTest:INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string prop 阅读全文
posted @ 2022-11-25 16:37 JohnYang819 阅读(64) 评论(0) 推荐(0)
摘要: public class Test { /// <summary> /// 静态字段初始化器会在调用静态构造器前运行。 /// 如果类型没有静态构造器,字段会在类型被使用前或运行时中更早的时间进行初始化. /// 静态字段初始化器按照字段声明的先后顺序运行。 /// </summary> publi 阅读全文
posted @ 2022-11-12 17:22 JohnYang819 阅读(353) 评论(0) 推荐(1)
摘要: 官网上好像并没有直接给相应的接口和方法。 发现一种有效的方法: 先说方法: ScrollViewer sv = flowScrollViewer.Template.FindName("PART_ContentHost", flowScrollViewer) as ScrollViewer; sv.S 阅读全文
posted @ 2022-11-02 14:59 JohnYang819 阅读(335) 评论(0) 推荐(0)
摘要: <UserControl x:Class="wpfTestStudio.textPlaceHolderDemo" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.mic 阅读全文
posted @ 2022-10-29 20:29 JohnYang819 阅读(137) 评论(0) 推荐(0)
摘要: public class A { } public class B : A { } public class C : A { } public static class Extension { public static void Test(B b) { Console.WriteLine("thi 阅读全文
posted @ 2022-10-25 10:22 JohnYang819 阅读(40) 评论(0) 推荐(0)
摘要: 在计算机图形学中,摄像机/视图空间,是由自身定位点,目标点,向上向量确定。当摄像机旋转时,实质是其目标点发生了变化,下面就摄像机的旋转角度引起目标点的变化进行简单的推导。 上图是右手坐标系,其中目标点假定为p,p的旋转有两个角度,分别是pitch(即向上向下看,范围是90°~-90°,即从y的正轴, 阅读全文
posted @ 2022-10-02 10:34 JohnYang819 阅读(294) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 30 下一页