- 博客(18)
- 资源 (8)
- 收藏
- 关注
转载 At least one object must implement IComparable
转自:http://blog.sina.com.cn/s/blog_486a8cc50102uwxn.htmlUsing delegatesclass Book{public Book(string id, string name, string author){ID=id;Name=name;Author=author;}public string ...
2019-01-30 20:32:11 1792
翻译 jquery
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %><asp:Conten
2019-01-30 14:26:22 132
原创 继承
这样的继承方式在书上很少遇到,一般也很少会自己想到通过继承的类实现接口 public interface A { void Test(); } public interface B : A { } public class D { public void Test() { ...
2019-01-24 17:16:38 86
转载 cache
static Func<T, R> Cache<T, R>(Func<T, R> func) { var mem = new Dictionary<T, R>(); return x => { if (!mem...
2019-01-24 16:18:08 91
原创 aspx
Global.aspx<%@ Application Language="C#" %><%@ Import Namespace="Microsoft.Samples.Jsonp" %><%@ Import Namespace="System.Web.Routing" %><%@ Import Namespace="System
2019-01-24 15:49:53 161
原创 序列化忽视部分字段
using Microsoft.Owin.Hosting;using Newtonsoft.Json;using System;using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Linq;using System.Text;using System.Thr...
2019-01-23 15:53:37 1352
转载 简易实现threadPool
using System;using System.Collections.Concurrent;using System.Collections.Generic;using System.Linq;using System.Threading;using System.Web;namespace service{ public class ThreadPool ...
2019-01-23 14:47:49 168
转载 EF
https://docs.microsoft.com/zh-cn/ef/ef6/modeling/code-first/migrations/index迁移 Code First Migrations is the recommended way to evolve your application's database schema if you are using the Code...
2019-01-18 21:19:15 213
原创 RSA加密算法是一种非对称加密算法
https://www.cnblogs.com/alunchen/p/5758585.htmlhttps://blog.csdn.net/triplestudio/article/details/47442349
2019-01-18 12:33:40 1437 1
转载 对 .NET 应用程序进行全球化和本地化
对 .NET 应用程序进行全球化和本地化2018/06/08 作者 开发全球通用的应用程序(包括可本地化为一种或多种语言的应用程序)分为三步:全球化、可本地化性审核和本地化。全球化此步骤包括设计和编码非特定区域性和非特定语言的应用程序,以及设计和编码支持所有用户的本地化用户界面和区域数据的应用程序。 它涉及做出不基于区域性特定的假设的设计和编程决策。...
2019-01-14 21:13:08 499
转载 多语言
在PictureStudio中,我需要实现多国语言的界面切换,而且切换各种语言版本的时候希望程序是动态的加载语言,不希望切换语言后重新启动程序。实现这样的功能可以有很愚蠢的方法,比如说你可以在程序中为界面上的所有国家的文字信息,在代码中进行赋值,你可以想像这样的做法是可以的,但绝对是愚蠢的,代码不应该写得这么丑陋。如果需要实现10个不同语言的版本,那你的代码中每一个涉及到界面文字的控件都要有至...
2019-01-14 21:11:34 577
转载 EF 之 System.InvalidOperationException
https://blog.csdn.net/yunnying/article/details/10947825An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user codeAdditional informatio...
2019-01-12 15:46:16 1711
转载 No Type Specified for the Decimal Column
转:https://www.colabug.com/3536556.html If you are using Entity Framework in a .NET Core project, you might run into the following issue if you have decimal fields.Microsoft.EntityFrameworkCore.Mo...
2019-01-12 12:05:01 1748
转载 跨域问题
原文链接:http://www.cnblogs.com/landeanfen/p/5177176.html 本篇主要从实例的角度分享下CORS解决跨域问题一些细节。一、跨域问题的由来同源策略:出于安全考虑,浏览器会限制脚本中发起的跨站请求,浏览器要求JavaScript或Cookie只能访问同域下的内容。正是由于这个原因,我们不同项目之间的调用就会被浏览器阻止。比如我们最常见的...
2019-01-09 21:21:45 312
转载 winform画图及立即显示的方法
private void Form1_Paint(object sender, PaintEventArgs e) { string path = Application.StartupPath; Image image = Image.FromFile(path + @"\psb.jpg"); Gra...
2019-01-07 20:12:14 926
原创 页面缓存的使用
protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { var s = Request.Cookies["name"]; ...
2019-01-05 17:40:13 382 1
转载 为SQL缓存通知启用数据库
转:https://www.cnblogs.com/xzxBlog/p/4782995.html 没有为 SQL 缓存通知启用数据库“ClassApp”。要为 SQL 缓存通知启用数据库,请使用 System.Web.Caching.SqlCacheDependencyAdmin.EnableNotifications 方法,或命令行工具 aspnet_regsql。要使用此工具,请运...
2019-01-01 16:35:16 267
转载 vs code 调试代码
转:https://blog.csdn.net/qq_40346899/article/details/80955788 主要命令://路径跳转cd //新建项目dotnet new console -o 路径 //运行dotnet run //用于发布exe<RuntimeIdentifier>win10-x64</RuntimeIde...
2019-01-01 11:23:02 1417
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人