当前位置:网站首页>C#+WPF 单元测试项目类高级程序员必知必会
C#+WPF 单元测试项目类高级程序员必知必会
2022-08-03 10:15:00 【济南医疗小程序状元】
新建控制台项目类
using System;
namespace Bank
{
internal class BankAccount
{
static void Main(string[] args)
{
//Console.WriteLine("Hello World!");
BankAccountDemo bank = new BankAccountDemo();
//bank.name = "姓名";
bank.Name = "迈一步";
bank.Add_Run();
Console.ReadLine();
}
}
public class BankAccountDemo
{
public int id;
public string name;
public string password;
protected int Demo1;
public string Name
{
get { return name; }
set { name = value; }
}
// 方法 接口定义
public void Add_Run()
{
// 判断
if(Name == "迈一步")
{
Console.WriteLine("编号--往前面迁走");
}
else if (Nam边栏推荐
猜你喜欢
随机推荐
进入 SQL Client 创建 table 后,在另外一个节点进入 SQL Client 查询不到
Apache Doris系列之:数据模型
使用GBase 8c数据库的时候,遇到这种报错“[[email protected] ~]$ /home/gbase/script/gha_ctl install -p……
MySQL 主从切换步骤
报告:想学AI的学生数量已涨200%,老师都不够用了
如何将Oracle/MySQL中的数据迁移到GBase 8c中?
pytorch安装错误
以网强算,中国移动算网建设激发澎湃能量
redis实现分布式锁的原理
With strong network, China mobile to calculate excitation surging energy network construction
mongodb服务启动失败_mongodb启动不了
pixel手机升系统
Redis的基础与django使用redis
Regulation action for one hundred days during the summer, more than 700 traffic safety hidden dangers were thrown out
决策树和随机森林
阿里本地生活全域日志平台 Xlog 的思考与实践
type="module" you know, but type="importmap" you know
从餐桌到太空,孙宇晨的“星辰大海”
Mysql OCP 73题
MySql数据库索引优化









