上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 30 下一页
摘要: 被引用的dll是testDllFr.dll,其代码为: namespace testDLLFr { public class TestA { public static void TestAM() { Console.WriteLine("TestAM"); } } public class Tes 阅读全文
posted @ 2022-09-29 19:03 JohnYang819 阅读(125) 评论(0) 推荐(0)
摘要: 读取JSON文件 NuGet两个包:Microsoft.Extensions.Configuration,Mircosoft.Extensions.Configuration.Json。 { "name": "yjw", "age": 18, "proxy": {"address": "aa"} } 阅读全文
posted @ 2022-09-04 23:46 JohnYang819 阅读(547) 评论(0) 推荐(0)
摘要: 依赖注入实际上是一种设计模式,它可以有效降低模块之间的耦合度。 基本思路: - 创建ServiceCollection对象 - 用ServiceCollection对象进行注册服务 - 用ServiceCollection创建ServiceProvider对象,通过ServiceProvider的G 阅读全文
posted @ 2022-09-03 23:15 JohnYang819 阅读(2641) 评论(0) 推荐(0)
摘要: 在ES6中,类中定义的方法,是放在原型对象的,供实例对象引用。 //创建一个Person类 class Person { constructor(name,age) { this.name = name; this.age = age; } } class Student extends Perso 阅读全文
posted @ 2022-07-31 11:28 JohnYang819 阅读(332) 评论(0) 推荐(0)
摘要: 'use strict'; const SecretHolder = (function () { const secrets = new WeakMap(); return class { constructor() { this.test = secrets; } setSecrete(secr 阅读全文
posted @ 2022-07-23 16:42 JohnYang819 阅读(140) 评论(0) 推荐(0)
摘要: 上图,左图为一个球体的三维图,其中一个圆面以θ角(范围为[0,PI])的方式确定,该圆面在x-z坐标平面投影如右图,其中圆面上任意一点又由α确定(范围为[0,2PI])。 假定该球体半径为r,那么球面任意一点均可以用r,θ,α唯一确定,确定关系如下: x=rsinθcosα;y=rcosθ;z=rs 阅读全文
posted @ 2022-07-09 11:23 JohnYang819 阅读(506) 评论(0) 推荐(0)
摘要: CSS的overflow 属性用来处理一个元素的尺寸超出其容器尺寸的情况。当一个元素包含的内容超粗自身的大小时,就会发生内容溢出,这种情况,可以对内容进行“裁剪”,只让一部分内容可见。 overflow的属性有四种:visible,hidden,scroll,auto: <!DOCTYPE html 阅读全文
posted @ 2022-05-17 23:12 JohnYang819 阅读(144) 评论(0) 推荐(0)
摘要: JavaScript的环境搭建非常简单,一个Chrome浏览器(实际上任何浏览器都自带有JavaScript解释器,Chrome对调试更友好,下载链接:http://www.51xiazai.cn/soft/4782.htm),然后用Visual Studio建立一个空项目,添加html文件和js文 阅读全文
posted @ 2022-05-10 13:14 JohnYang819 阅读(342) 评论(0) 推荐(0)
摘要: 背景 今天终于突破了一点点关于HLSL的知识,有感而发。刚接触DirectX,完全是摸不着头脑,各种概念都是非常新奇的,完全不懂,直到个各种概念逐渐清晰,并产生相互联系,描述了DirectX的工作机制,当然这个是技术层面,由于该学习过程非常具有自己摸索着学习几乎完全陌生的领域的特点,因此基于这一段学 阅读全文
posted @ 2022-04-23 10:57 JohnYang819 阅读(107) 评论(0) 推荐(0)
摘要: WPF之命令 WPF命令系统由以下几个基本要素构成: 命令对象,实现了ICommand接口的类,一般用RoutedCommand类 命令源,命令的发送者,是实现了ICommandSource接口的类,很多界面元素都实现了该接口,包括Button,MenumItem,ListBoxItem 命令目标, 阅读全文
posted @ 2022-04-19 23:44 JohnYang819 阅读(240) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 30 下一页