08 2020 档案

摘要:1.前言 传递参数,不需要返回值,对懒人很舒服哟,缺点是不好定位数据 2.操作 using System; namespace ConsoleApp1.letVlaueGo { public class DoValue { public static void Main(string[] args) 阅读全文
posted @ 2020-08-28 14:16 岑惜 阅读(767) 评论(0) 推荐(0) 编辑
摘要:1.前言 与Java基本一模一样,但是rider貌似没有意见生成get和set方法的指令 2.操作 (1)目录 实体源码 namespace ConsoleApp1.entity { public class User { public User(){} public User(string nam 阅读全文
posted @ 2020-08-28 13:39 岑惜 阅读(1448) 评论(0) 推荐(0) 编辑
摘要:1.使用c#自带的 Convert类转换数据类型 2.源码 using System; namespace ConsoleApp1.toValue { class excutejiecheng { static void Main(string[] args) { const string s = 阅读全文
posted @ 2020-08-28 12:02 岑惜 阅读(207) 评论(0) 推荐(0) 编辑
摘要:1.前言 这是对二进制数据进行位移的方法 2.操作 using System; namespace ConsoleApp1.toValue { public class test1 { public static void Main(string[] args) { /* 60 = 0011 110 阅读全文
posted @ 2020-08-28 11:38 岑惜 阅读(916) 评论(0) 推荐(0) 编辑
摘要:1.前言 接口与Java基本一样 2.操作 (1)看路径结果 (2) 接口源码: namespace ConsoleApp1 { public interface ILogin { void Eat(); string Tu(int type); } } View Code 接口实现类源码 usin 阅读全文
posted @ 2020-08-28 11:06 岑惜 阅读(2283) 评论(0) 推荐(0) 编辑
摘要:不论是类名、接口名、方法名、都建议使用大写开头的名称,Rider提示这样才规范,当然,不写也是可以的 阅读全文
posted @ 2020-08-28 10:54 岑惜 阅读(238) 评论(0) 推荐(0) 编辑
摘要:方法类可以使用 internal 修饰符,意为接口类, 主函数建议添加私有修饰符 private 控制台打印 阅读全文
posted @ 2020-08-28 10:44 岑惜 阅读(1615) 评论(0) 推荐(0) 编辑
摘要:1.前言 c#与Java很相似,但是不一样,又与js(JavaScript)相似,但是也不一样,所以我认为c#是Java和 js的孩子。 2.常量定义 字符串: const string = "love"; 是的,没错,数据类型就是小写,常量数据还需要带修饰符const,与js 的 cs6语法类似 阅读全文
posted @ 2020-08-27 14:16 岑惜 阅读(1838) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示