1、Java反射机制概念 Java 反射机制在程序运行时,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象,都能够调用它的任意一个方法和属性。这种 动态的获取信息 以及 动态调用对象的方法 的功能称为 java 的反射机制。 类的加载指的是将类的.class文件中的二进制数据读入到 ...
分类:
编程语言 时间:
2019-12-09 19:26:22
阅读次数:
105
下面插入代码 本脚本挂在你不想销毁的物体上面 using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExitApp : MonoBehaviour { public st ...
分类:
编程语言 时间:
2019-12-09 13:57:12
阅读次数:
204
我们可以使有dotnetcore跨平台的特性,优雅的实现在dotnetcore执行shell (bash). 代码如下:using System;using System.Collections.Generic;using System.Text;namespace hshoc{ using Sys... ...
分类:
Web程序 时间:
2019-12-08 23:39:47
阅读次数:
388
SpringBoot在项目启动时如果遇到异常并不能友好的打印出具体的堆栈错误信息,我们只能查看到简单的错误消息,以致于并不能及时解决发生的问题,针对这个问题SpringBoot提供了故障分析仪的概念(failure-analyzer),内部根据不同类型的异常提供了一些实现,我们如果想自定义该怎么去做 ...
分类:
编程语言 时间:
2019-12-08 10:21:56
阅读次数:
134
先放上串口的一个类,自己编写的,觉得这样好用些。 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System ...
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Threading; namespace WindowsFormsApplicati ...
java和C#非常相似,它们大部分的语法是一样的,但尽管如此,也有一些地方是不同的。 为了更好地学习java或C#,有必要分清它们两者到底在哪里不同。 我们这次要来探讨数组的初始化。 java代码: 1 package HelloWorld; 2 3 public class HelloWorld ...
分类:
编程语言 时间:
2019-12-07 10:21:57
阅读次数:
87
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 package com.str; public class ZiFuChuan { public static String ss = "全局变量!!!!!!"; String s2 = null; ...
分类:
编程语言 时间:
2019-12-06 19:33:37
阅读次数:
84
Update() GetSingleResult() GetReader() 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Da ...
分类:
数据库 时间:
2019-12-06 13:40:29
阅读次数:
108