
C#
wingsky666
这个作者很懒,什么都没留下…
展开
-
2021-06-22 C#数组简要说明
C# 数组原文地址https://www.cnblogs.com/peida/archive/2009/02/19/1394030.html数组概述C# 数组从零开始建立索引,即数组索引从零开始。C# 中数组的工作方式与在大多数其他流行语言中的工作方式类似。但还有一些差异应引起注意。声明数组时,方括号 ([]) 必须跟在类型后面,而不是标识符后面。在 C# 中,将方括号放在标识符后是不合法的语法。int[] table; // not int table[];另一细节是,数组的大小不是其类型的一转载 2021-06-22 19:48:41 · 1648 阅读 · 0 评论 -
2021-06-20 C# IList
https://www.cnblogs.com/zuochengsi-9/p/4863718.htmlIList与List相比,只是重载的区别。在方法使用上没有太大区别声明IList IList11 =new List ();List List11 =new List ();转载 2021-06-20 11:08:23 · 1862 阅读 · 0 评论 -
C# Dapper连接mysql数据库
先整个标记吧!免得到时候又要翻箱倒柜。C# 连接设置1using MySql.Data.MySqlClient;using System.Data;using System;public class Conn{ String server = "localhost"; String username = "root"; String password = "123456"; String database = "btu"; String port = "8原创 2021-05-27 15:07:16 · 2244 阅读 · 0 评论 -
Net.Core Webapi 文件上传接口
感谢https://www.youtube.com/watch?v=ungZ-BaVvZk&ab_channel=ThumbIKR-ProgrammingExamples的教程。Net.Core Webapi 文件上传接口Net版本 5.0Controller设置Controller文件夹,ImageUploadController.cs文件,这里为了简化操作,将Model文件里面的 FileUploadAPI也移到里面了。using Microsoft.AspNetCore.Mvc;u原创 2021-05-03 18:49:50 · 4237 阅读 · 1 评论 -
C#求解Array、List等最大值
被这个问题卡了好长时间,都2021年了,最大最小值这种函数不可能还需要人手写了吧!但直接用Max函数又提示不存在该函数,而Math.Max()函数的参数又只能是两个数值类型,范围及其有限。今天,我终于找到答案了,要引用System.Linq,才能用Max()等函数类型using System.Linq;示例:using System.Linq;...List<int> vs = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }原创 2021-04-26 07:06:47 · 735 阅读 · 0 评论