ICode9

精准搜索请尝试: 精确搜索
  • C# Roslyn修改代码2022-06-27 22:06:10

    源app class Program { /// <summary> /// 方法入口123 /// </summary> /// <param name="args"></param> static void Main(string[] args) { Program.Plus(3,3);

  • Codeforces 1139F. Dish Shopping2022-06-27 22:05:57

    传送门 \(\texttt{Difficulty:2500}\) 题目大意 思路 代码 #include<bits/stdc++.h> #include<unordered_map> #include<unordered_set> using namespace std; using LL = long long; using LD = long double; using ULL = unsigned long long; using PII = pair<

  • 项目 -> 超市收银系统2022-06-25 16:35:52

    商品父类: 查看代码 using System; using System.Collections.Generic; using System.Text; namespace 超市收银系统 { public class ProductFather { public double Price { set; get; } public double Count { set; get; } public string ID

  • SignalR 2 与mvc 5实现实时聊天功能2022-06-25 14:31:59

    效果图先附上:    首先 这是我是参考  教程:使用 SignalR 2 和 MVC 5 实时聊天 | Microsoft Docs 先附上教程:         在“添加新项 - SignalRChat”中,选择 InstalledVisual> C#>WebSignalR>,然后选择 SignalR Hub 类 (v2) 。 将类 ChatHub 命名并添加到项目中

  • WPF DataTrigger的使用方法2022-06-22 22:33:16

    效果如下 后台代码 1 using Microsoft.Toolkit.Mvvm.ComponentModel; 2 using System; 3 using System.Collections.Generic; 4 using System.Collections.ObjectModel; 5 using System.ComponentModel; 6 using System.Globalization; 7 using System.Linq; 8

  • Task基础-创建Task,Task传参,获取Task返回值2022-06-21 23:02:20

    Task基础介绍 Task的创建 获取Task的执行结果  补充细节 1、Task基础介绍 Task类是Task Programming Library(TPL)中最核心的一个类,下面我将会像大家展示如何使用一些方法来创建不同类型的Task,取消Task,等待Task执行完成,获取Task执行后的结果和对异常进行处理。 我们用静态方法:T

  • NetCore3.1 ping网络是否畅通及获取服务器Cpu、内存使用率2022-06-21 18:37:59

    十年河东,十年河西,莫欺少年穷 学无止境,精益求精 1、ping 服务器是否畅通 引入nuget包:System.Diagnostics.Process    代码如下: using System; using System.Net.NetworkInformation; using System.Text; namespace PingPolice { internal class Program { st

  • c# 利用反射动态给实体类对象赋值2022-06-21 15:31:23

    转:http://blog.sina.com.cn/s/blog_659a572b0100xp5s.html 例子如下using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplication2.Models;using DataAccess;using System.Configuration;using System.Data;usi

  • NetCore3.1 制作windows服务2022-06-21 15:03:11

    十年河东,十年河西,莫欺少年穷 学无止境,精益求精 本篇博客演示控制台程序发布为windows服务,涉及依赖注入,配置文件读取,backGroundService,及 timer 1、新建控制台程序 MyWindowsService      2、添加Nuget引用 Microsoft.Extensions.Hosting、Microsoft.Extensions.Hosting.Wind

  • MAUI与Blazor共享一套UI,媲美Flutter,实现Windows、macOS、Android、iOS、Web通用UI2022-06-21 14:00:31

    1. 前言 距离上次发《MAUI初体验:爽》一文已经过去2个月了,本计划是下半年或者明年再研究MAUI的,现在计划提前啦,因为我觉得MAUI Blazor挺有意思的:在Android、iOS、macOS、Windows之间共享UI,一处UI增加或者修改,就能得到一致的UI体验。 看看这篇文章《Blazor Hybrid/MAUI 简介和实战》

  • Autofac 整合asp.net core62022-06-19 15:00:39

    1、Nuget引入 Autofac、Autofac.Extensions.DependencyInjection 2、Program.cs里面添加注入配置 { //第一种方式注入 builder.Host.UseServiceProviderFactory(new AutofacServiceProviderFactory()); //通过工厂替换,把Autofac整合进来 builder.Host.ConfigureCont

  • 【WPF】自定义下拉菜单控件DropDownButton的实现,下拉箭头旋转,ContextMenu、MenuItem的样式及FontAwesome字体图标的引用2022-06-19 09:31:58

    DropDownButton控件自定义,ContextMenu、MenuItem的样式及FontAwesome字体图标的引用 效果如图,弹出收起动画等的效果还没做。   xaml: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w

  • C# (Net6) HttpClient 帮助类2022-06-18 12:34:18

    public static string PostFromQueryToString(string url, string reqData) { string strUrl = new UriBuilder(url) { Query = reqData }.ToString(); if (strUrl.StartsWith("https"

  • Searching from end of file using VIM2022-06-17 12:33:54

    https://stackoverflow.com/questions/12867573/searching-from-end-of-file-using-vim   Searching from end of file using VIM Ask Question Asked 9 years, 8 months ago Modified 3 years, 11 months ago Viewed 64k times   Report this ad 43 11 Ho

  • 【.NET Core项目实战-统一认证平台】第七章 网关篇-自定义客户端限流2022-06-17 10:04:45

    【.NET Core项目实战-统一认证平台】开篇及目录索引 上篇文章我介绍了如何在网关上增加自定义客户端授权功能,从设计到编码实现,一步一步详细讲解,相信大家也掌握了自定义中间件的开发技巧了,本篇我们将介绍如何实现自定义客户端的限流功能,来进一步完善网关的基础功能。 .netcore项

  • .NET6 全局using2022-06-16 18:02:28

    语法 全局using你再也不用每个类里都引用命名空间了 项目的csproj文件中加入 <ItemGroup> <PackageReference Include="LeetCode.CommunityToolKit" Version="4.0.3" /> <Using Include="LeetCode.CommunityToolKit.Models;" /> <Using

  • Unity中使用ini配置文件2022-06-16 15:36:21

    unity本身是没有配置文件的,每次在项目中修改ip等配置信息都要重新生成项目,很不方便 研究发现unity是用插件Advanced INI Parser读写配置信息写的 第一步 下载插件Advanced INI Parser 第二步 创建 StreamingAssets/config.txt文件 [Player] name=Arnold avatar=2 Score=211 ; Thi

  • OpenCV画线(line函数)2022-06-16 12:05:06

    1 不需要加载图片 // C++ program for the above approach #include <iostream> #include <opencv2/core/core.hpp> // Library to include for // drawing shapes #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc.hpp> using namespa

  • C# lamda表达式2022-06-16 01:32:39

    本意上为匿名方法的简写,将整个需要被委托执行的方法整体放入委托中执行的简化写法 点击查看代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 匿名委托 { internal class Program

  • 异步委托有返回值 和回调方法 C#2022-06-15 17:00:56

    using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Messaging; using System.Text; using System.Threading; using System.Threading.Tasks; namespace 异步委托有返回值 { class Program { static void Ma

  • 【完全背包问题】AcWing3.完全背包问题——朴素、优化、状压、思维转换2022-06-13 18:03:28

    AcWing3.完全背包问题 题解 朴素写法 #include <iostream> using namespace std; const int N = 1010; int v[N], w[N]; int f[N][N]; int main() { int n, m; cin >> n >> m; for(int i = 1; i <= n; ++i) cin >> v[i] >> w[

  • Dynamics CRM 365自动编号重复的并发防止2022-06-13 17:31:26

    1.Dynamics CRM 365控制并发的处理方式:A.在数据库端控制,可以设置唯一聚集索引来处理。B.在进程端处理 由于自动编号只在Plugin触发,所以这里可以在进程端处理 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; us

  • 扩展方法小记2022-06-13 11:05:10

    什么是扩展方法? 我的理解是:在变量原有基础上做 扩展 在原有基础上增加新业务,就是扩展方法 例子: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace TuozhanTest 8 { 9

  • 重写金蝶简单账表示例2022-06-13 00:33:54

    重写金蝶标准应收款明细表添加应收单上的自定义文本字段 点击查看代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using Kingdee.K3.FIN.AR.App.Report; using Kingd

  • ASP.NET Core-数据保护(Data Protection)2022-06-12 20:00:21

    介绍 ASP.NET Core 数据保护提供简单易用的加密 API,开发人员可以使用它来保护数据,包括密钥管理。 Data Protection(数据安全)机制:为了确保Web应用敏感数据的安全存储,该机制提供了一个简单、基于非对称加密改进的加密API用于数据保护。 它不需要开发人员自行生成密钥,它会根据当前应用

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有