
C#
Yonggie
只写优质原创,坚决绝拒绝抄袭 | 研究员 | 广州大学 | 香港中文大学深圳FNii | pytorch_geometric(PyG)、FATE contributor
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C# 用SequenceEqual判断List<string>是否相等
我是菜鸡,记录一下。 using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program ...原创 2019-01-19 11:42:33 · 6498 阅读 · 2 评论 -
C# 得到变量的类型
using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { //方法1 Sy...原创 2019-01-19 20:00:39 · 13687 阅读 · 1 评论 -
C# 不定参数
在声明参数前面加params。 example: class SimpleSet { List<string> keywords = new List<string>(); public SimpleSet(params string[] l) { foreach(string ele...原创 2019-01-20 11:21:56 · 3407 阅读 · 1 评论 -
C# 判断字符串中是否含有指定字符串
用contains example: using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class P...原创 2019-01-20 21:12:32 · 19448 阅读 · 4 评论