11 2021 档案

摘要:public static IEnumerable<TResult> SelectMany<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, IEnumerable<TResult>> selector) { if ( 阅读全文
posted @ 2021-11-30 14:38 vba是最好的语言 阅读(26) 评论(0) 推荐(0) 编辑
摘要:一、安装下载 1.下载CodeSmith 6.5 完美破解版 http://down.51cto.com/data/436296 http://download.csdn.net/detail/gattaca2011/4389196 2.下载CodeSmith 7.0 支持vs2013 http:/ 阅读全文
posted @ 2021-11-29 14:37 vba是最好的语言 阅读(325) 评论(0) 推荐(0) 编辑
摘要:转自:ABP框架—后台:引入Abp.Dapper(10)_预立数据科技-CSDN博客 一、NuGet获取Abp.Dapper项目类库Application和项目类库EntityFrameworkCore添加Abp.Dapper引用,如图: 二、创建实体Entity 项目类库Core创建实体,如图: 阅读全文
posted @ 2021-11-29 13:38 vba是最好的语言 阅读(350) 评论(0) 推荐(0) 编辑
摘要:【续】5年后,我们为什么要从 Entity Framework 转到 Dapper 工具?_ahilll的博客-CSDN博客 阅读全文
posted @ 2021-11-29 12:06 vba是最好的语言 阅读(75) 评论(0) 推荐(0) 编辑
摘要:public static TSource Single<TSource>(this IEnumerable<TSource> source) { if (source == null) throw Error.ArgumentNull("source"); IList<TSource> list 阅读全文
posted @ 2021-11-29 11:10 vba是最好的语言 阅读(32) 评论(0) 推荐(0) 编辑
摘要:转自:.NET Core中的鉴权授权正确方式(.NET5) - 包子wxl - 博客园 (cnblogs.com) 一、简介 前后端分离的站点一般都会用jwt或IdentityServer4之类的生成token的方式进行登录鉴权。这里要说的是小项目没有做前后端分离的时站点登录授权的正确方式。 回到顶 阅读全文
posted @ 2021-11-29 10:01 vba是最好的语言 阅读(344) 评论(0) 推荐(0) 编辑
摘要:EF版本:6.0.0 EF对大量数据或多表连接一次操作耗时较大,或要求响应时间尽可能小,因此采用EF框架执行SQL语句的方案 1DbContext.Database 这个类包含了大量的操作方法,见截图: 查询方法举例: using (CustomDbContext db = new CustomDb 阅读全文
posted @ 2021-11-29 09:28 vba是最好的语言 阅读(155) 评论(0) 推荐(0) 编辑
摘要:而Product中的属性则逐一映射到Products数据表中的同名数据字段,比如Product类如下所示: public class Product{ public int Id {get;set;} public string Name {get;set;} public int Price {g 阅读全文
posted @ 2021-11-28 22:50 vba是最好的语言 阅读(23) 评论(0) 推荐(0) 编辑
摘要:添加:Microsoft.EntityFrameworkCore.SqlServer 阅读全文
posted @ 2021-11-27 23:05 vba是最好的语言 阅读(108) 评论(0) 推荐(0) 编辑
摘要:看下源码: namespace Abp.Domain.Entities { /// <summary> /// A shortcut of <see cref="Entity{TPrimaryKey}"/> for most used primary key type (<see cref="int 阅读全文
posted @ 2021-11-27 22:05 vba是最好的语言 阅读(32) 评论(0) 推荐(0) 编辑
摘要:Assembly.GetExecutingAssembly():当前方法所在程序集 阅读全文
posted @ 2021-11-27 21:40 vba是最好的语言 阅读(150) 评论(0) 推荐(0) 编辑
摘要:相关博客:Entity Framework学习笔记(一) - 大话济公 - 博客园 (cnblogs.com) 阅读全文
posted @ 2021-11-26 13:14 vba是最好的语言 阅读(28) 评论(0) 推荐(0) 编辑
摘要:实际结构: 阅读全文
posted @ 2021-11-26 10:39 vba是最好的语言 阅读(224) 评论(0) 推荐(0) 编辑
摘要:转自:C#使用Castle实现AOP面向切面编程 - 以德为先 - 博客园 (cnblogs.com) Castle.Core 本质是创建继承原来类的代理类,重写虚方法实现AOP功能。个人觉得比Autofac用着爽 使用方式比较简单,先新建一个控制台项目,然后在Nuget上搜索Castle.Core 阅读全文
posted @ 2021-11-25 13:35 vba是最好的语言 阅读(430) 评论(0) 推荐(0) 编辑
摘要:namespace System.Net { // Summary: // Contains the values of status codes defined for HTTP. public enum HttpStatusCode { // Summary: // Equivalent to 阅读全文
posted @ 2021-11-25 11:20 vba是最好的语言 阅读(85) 评论(0) 推荐(0) 编辑
摘要:英文官网:Documents | AspNet Boilerplate 什么是ASP.NET样板文件?ASP.NET样板文件(ABP)是一个开源的、有良好文档记录的应用程序框架。它不仅仅是一个框架,它还提供了一个基于领域驱动设计的强大体系结构模型,并考虑了所有最佳实践。ABP与最新的ASP.NET 阅读全文
posted @ 2021-11-24 16:52 vba是最好的语言 阅读(481) 评论(0) 推荐(0) 编辑
摘要:附上一个学习网站:C#高级知识点&(ABP框架理论学习高级篇)——白金版 - tkbSimplest - 博客园 (cnblogs.com) 1.引入ABP 2.添加自定义module,继承AbpModule public class MyAbpModule : AbpModule { public 阅读全文
posted @ 2021-11-24 15:54 vba是最好的语言 阅读(85) 评论(0) 推荐(0) 编辑
摘要:ABP集合贴 - kebinet - 博客园 (cnblogs.com) 每天必须学习1个小时,是给自己的最后底线。 《从零开始进行ABP项目开发》的最新版本代码发布到GitHub - 简书 (jianshu.com) --个人博客网址,abp的。 ABP – 寻找无名的特质 (jiagoushi. 阅读全文
posted @ 2021-11-24 13:09 vba是最好的语言 阅读(41) 评论(0) 推荐(0) 编辑
摘要:1.Module模块 1.Console项目: 1.1 基础:Net5.0 VS2019 1.2 目标:实现abp的module 1.3 实现步骤: 引入Volo.abp.core,Volo.Abp.Autofac 自定义abpmodule类 /// <summary> /// 使用ABP Modu 阅读全文
posted @ 2021-11-23 22:59 vba是最好的语言 阅读(180) 评论(0) 推荐(0) 编辑
摘要:转载与:线程池之ThreadPool类与辅助线程 - <第二篇> - 逆心 - 博客园 (cnblogs.com) 一、CLR线程池 管理线程开销最好的方式: 尽量少的创建线程并且能将线程反复利用(线程池初始化时没有线程,有程序请求线程则创建线程); 最好不要销毁而是挂起线程达到避免性能损失(线程池 阅读全文
posted @ 2021-11-23 16:43 vba是最好的语言 阅读(104) 评论(0) 推荐(0) 编辑
摘要:目前项目存在页面展示大量图片,效率不高,考虑优化性能,改为ashx+异步下载的方式,废话不说直接贴code: using System; using System.Web; using System.IO; using System.Web.SessionState; using System.Th 阅读全文
posted @ 2021-11-23 16:39 vba是最好的语言 阅读(97) 评论(0) 推荐(0) 编辑
摘要:delegate void MyDelegate(); class Program { static void Main(string[] args) { MyDelegate myDelegate = new MyDelegate(Show); myDelegate.Invoke();//延迟3秒 阅读全文
posted @ 2021-11-23 16:14 vba是最好的语言 阅读(77) 评论(0) 推荐(0) 编辑
摘要:[System.Security.SecurityCritical] // auto-generated_required [MethodImplAttribute(MethodImplOptions.NoInlining)] // Methods containing StackCrawlMark 阅读全文
posted @ 2021-11-23 15:50 vba是最好的语言 阅读(208) 评论(0) 推荐(0) 编辑
摘要:/* ** Returns true if the thread is a threadpool thread. */ public extern bool IsThreadPoolThread { [System.Security.SecuritySafeCritical] // auto-gen 阅读全文
posted @ 2021-11-23 15:45 vba是最好的语言 阅读(48) 评论(0) 推荐(0) 编辑
摘要:public bool IsBackground { [System.Security.SecuritySafeCritical] // auto-generated get { return IsBackgroundNative(); } [System.Security.SecuritySafe 阅读全文
posted @ 2021-11-23 15:18 vba是最好的语言 阅读(35) 评论(0) 推荐(0) 编辑
摘要:[Obsolete("The ApartmentState property has been deprecated. Use GetApartmentState, SetApartmentState or TrySetApartmentState instead.", false)] public 阅读全文
posted @ 2021-11-23 15:17 vba是最好的语言 阅读(49) 评论(0) 推荐(0) 编辑
摘要:// As the culture can be customized object then we cannot hold any // reference to it before we check if it is safe because the app domain // owning t 阅读全文
posted @ 2021-11-23 15:12 vba是最好的语言 阅读(71) 评论(0) 推荐(0) 编辑
摘要:public static Context CurrentContext { [System.Security.SecurityCritical] // auto-generated_required get { return CurrentThread.GetCurrentContextInter 阅读全文
posted @ 2021-11-23 15:07 vba是最好的语言 阅读(53) 评论(0) 推荐(0) 编辑
摘要:public static Thread CurrentThread { [System.Security.SecuritySafeCritical] // auto-generated [ReliabilityContract(Consistency.WillNotCorruptState, Ce 阅读全文
posted @ 2021-11-22 14:27 vba是最好的语言 阅读(43) 评论(0) 推荐(0) 编辑
摘要:// Get and set thread's current principal (for role based security). // 获取并设置线程的当前主体(用于基于角色的安全性)。 public static IPrincipal CurrentPrincipal { [System. 阅读全文
posted @ 2021-11-22 13:48 vba是最好的语言 阅读(215) 评论(0) 推荐(0) 编辑
摘要:C#中线程占用内存过大解决方法 项目中用到了多线程,而且是1000线程并发运行,发现内存占用过高,于是对项目里用到的对象逐个测试,发现是线程对象占用内存 Thread[] threads = new Thread[1000]; for(int i = 0; i) { (threads[i] = ne 阅读全文
posted @ 2021-11-22 13:21 vba是最好的语言 阅读(316) 评论(0) 推荐(0) 编辑
摘要:namespace System.Threading { using System.Security.Permissions; using System.Threading; using System.Runtime.InteropServices; [ComVisibleAttribute(fal 阅读全文
posted @ 2021-11-22 11:23 vba是最好的语言 阅读(48) 评论(0) 推荐(0) 编辑
摘要:public sealed class Thread : CriticalFinalizerObject, _Thread { [System.Security.SecuritySafeCritical] // auto-generated public Thread(ThreadStart sta 阅读全文
posted @ 2021-11-22 11:17 vba是最好的语言 阅读(119) 评论(0) 推荐(0) 编辑
摘要:[ClassInterface(ClassInterfaceType.None)] [ComDefaultInterface(typeof(_Thread))] [ComVisible(true)] public sealed class Thread : CriticalFinalizerObje 阅读全文
posted @ 2021-11-22 10:37 vba是最好的语言 阅读(260) 评论(0) 推荐(0) 编辑
摘要:依赖于抽象而不依赖与实现 依赖于抽象而不依赖与实现,并不难理解。比方说我们需要一个东西来盛水,这个东西只要有盛水的功能就行了,我们并不关心它是马克杯,乐扣杯,或者是解放牌大瓷缸,甚至是尿壶,这个能盛水的东西便是抽象(我们在脑海里只有一个概念,却没有实物),而马克杯或者其他的具体实物便是抽象的实现,面 阅读全文
posted @ 2021-11-22 10:16 vba是最好的语言 阅读(94) 评论(0) 推荐(0) 编辑
摘要:地址: .NET Core使用NPOI导出复杂,美观的Excel详解 - 追逐时光者 - 博客园 (cnblogs.com) 阅读全文
posted @ 2021-11-22 09:48 vba是最好的语言 阅读(107) 评论(0) 推荐(0) 编辑
摘要:public static IEnumerable<TSource> Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) { if (source == null) { ThrowHelper 阅读全文
posted @ 2021-11-20 15:21 vba是最好的语言 阅读(46) 评论(0) 推荐(0) 编辑
摘要:public class MyList<T> { private int _size; internal T[] _items; // Do not rename (binary serialization) private static readonly T[] s_emptyArray = ne 阅读全文
posted @ 2021-11-20 13:51 vba是最好的语言 阅读(59) 评论(0) 推荐(0) 编辑
摘要:// Gets the length of this string // // This is an intrinsic function so that the JIT can recognise it specially // and eliminate checks on character 阅读全文
posted @ 2021-11-20 11:57 vba是最好的语言 阅读(96) 评论(0) 推荐(0) 编辑
摘要:public class BackCard { public string UserName { get; set; } public string id { get; set; } public void CunQian() { } public void Overdraft() { } } // 阅读全文
posted @ 2021-11-19 16:33 vba是最好的语言 阅读(39) 评论(0) 推荐(0) 编辑
摘要:public TypeCode GetTypeCode() { return TypeCode.String; } 阅读全文
posted @ 2021-11-19 14:59 vba是最好的语言 阅读(29) 评论(0) 推荐(0) 编辑
摘要:// Determines whether two Strings match. [Pure] public static bool Equals(String a, String b) { if ((Object)a==(Object)b) { return true; } if ((Object 阅读全文
posted @ 2021-11-19 14:36 vba是最好的语言 阅读(32) 评论(0) 推荐(0) 编辑
摘要:// Determines whether a specified string is a suffix of the the current instance. // // The case-sensitive and culture-sensitive option is set by opti 阅读全文
posted @ 2021-11-19 14:35 vba是最好的语言 阅读(85) 评论(0) 推荐(0) 编辑
摘要:[ComVisible(true)] public enum TypeCode { Empty = 0, Object = 1, DBNull = 2, Boolean = 3, Char = 4, SByte = 5, Byte = 6, Int16 = 7, UInt16 = 8, Int32 阅读全文
posted @ 2021-11-19 14:29 vba是最好的语言 阅读(233) 评论(0) 推荐(0) 编辑
摘要:[Pure] public bool Contains( string value ) { return ( IndexOf(value, StringComparison.Ordinal) >=0 ); } [Pure] [System.Security.SecuritySafeCritical] 阅读全文
posted @ 2021-11-19 14:28 vba是最好的语言 阅读(207) 评论(0) 推荐(0) 编辑
摘要:[Pure] public int CompareTo(Object value) { if (value == null) { return 1; } if (!(value is String)) { throw new ArgumentException(Environment.GetReso 阅读全文
posted @ 2021-11-19 14:08 vba是最好的语言 阅读(58) 评论(0) 推荐(0) 编辑
摘要:// Method required for the ICloneable interface.IClonable接口所需的方法。 // There's no point in cloning a string since they're immutable, so we simply return 阅读全文
posted @ 2021-11-19 14:01 vba是最好的语言 阅读(33) 评论(0) 推荐(0) 编辑
摘要:[Pure] public static bool IsNullOrWhiteSpace(String value) { if (value == null) return true; for(int i = 0; i < value.Length; i++) { if(!Char.IsWhiteS 阅读全文
posted @ 2021-11-19 14:00 vba是最好的语言 阅读(23) 评论(0) 推荐(0) 编辑
摘要:[Pure] public static bool IsNullOrEmpty(String value) { return (value == null || value.Length == 0); } 阅读全文
posted @ 2021-11-19 13:59 vba是最好的语言 阅读(32) 评论(0) 推荐(0) 编辑
摘要:C# System.String.Intern 方法 - CSharp 参考教程 (csref.cn) 阅读全文
posted @ 2021-11-19 13:56 vba是最好的语言 阅读(27) 评论(0) 推荐(0) 编辑
摘要:[System.Security.SecuritySafeCritical] // auto-generated public static String Intern(String str) { if (str==null) { throw new ArgumentNullException("s 阅读全文
posted @ 2021-11-19 13:55 vba是最好的语言 阅读(33) 评论(0) 推荐(0) 编辑
摘要:public static String Format(String format, Object arg0) { Contract.Ensures(Contract.Result<String>() != null); return FormatHelper(null, format, new P 阅读全文
posted @ 2021-11-19 13:45 vba是最好的语言 阅读(108) 评论(0) 推荐(0) 编辑
摘要:[System.Security.SecuritySafeCritical] // auto-generated unsafe public static String Copy (String str) { if (str==null) { throw new ArgumentNullExcept 阅读全文
posted @ 2021-11-19 13:33 vba是最好的语言 阅读(52) 评论(0) 推荐(0) 编辑
摘要:public static String Concat(params Object[] args) { if (args==null) { throw new ArgumentNullException("args"); } Contract.Ensures(Contract.Result<Stri 阅读全文
posted @ 2021-11-19 13:11 vba是最好的语言 阅读(143) 评论(0) 推荐(0) 编辑
摘要:// Provides a culture-correct string comparison. strA is compared to strB // to determine whether it is lexicographically less, equal, or greater, and 阅读全文
posted @ 2021-11-19 11:12 vba是最好的语言 阅读(62) 评论(0) 推荐(0) 编辑
摘要:[Pure] [System.Security.SecuritySafeCritical] // auto-generated public static bool Equals(String a, String b, StringComparison comparisonType) { if (c 阅读全文
posted @ 2021-11-19 11:05 vba是最好的语言 阅读(43) 评论(0) 推荐(0) 编辑
摘要:地址:深入Dapper.NET源码 (文长) - dreamw - 博客园 (cnblogs.com) 阅读全文
posted @ 2021-11-19 10:38 vba是最好的语言 阅读(25) 评论(0) 推荐(0) 编辑
摘要:写了太多业务代码,完全是为了实现某一个功能去写,这样再怎么写下去也都是没有很多进步空间的,很多人把原因归咎到环境。例如公司环境、几十年还在用老框架、一点新技术不用。。。net framework版本还停留在4.0,4.5。你连新语法都不敢写。我也是这样的。。 “我们无非是希望在编程的时候,把大部分的 阅读全文
posted @ 2021-11-19 10:30 vba是最好的语言 阅读(21) 评论(0) 推荐(0) 编辑
摘要:案列: public class Animal { } public class Dog : Animal { } class Program { static void Main(string[] args) { Animal dog = new Dog(); Dog dog1 = new Dog 阅读全文
posted @ 2021-11-18 23:11 vba是最好的语言 阅读(22) 评论(0) 推荐(0) 编辑
摘要:基于layui实现穿梭框 (jq22.com) 今天在弄穿梭框的时候,发现内容溢出,如下图所示: 设置代码如下: layui.use(['transfer', 'form', 'layer','util'], function () { var form = layui.form , layer = 阅读全文
posted @ 2021-11-18 17:24 vba是最好的语言 阅读(436) 评论(0) 推荐(0) 编辑
摘要:Lookup<TKey,TElement> 类 定义 命名空间:System.Linq程序集:netstandard.dll 表示键的集合,其中每个键映射到一个或多个值。 public class Lookup<TKey,TElement> : System.Collections.Generic. 阅读全文
posted @ 2021-11-18 17:07 vba是最好的语言 阅读(89) 评论(0) 推荐(0) 编辑
摘要:源码: public static IEnumerable<TSource> Intersect<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second) { if (first == null) throw Err 阅读全文
posted @ 2021-11-18 16:41 vba是最好的语言 阅读(55) 评论(0) 推荐(0) 编辑
摘要:C#语法特性总结 转载自:C#语法特性总结 - louzi - 博客园 (cnblogs.com) C# 10已与.NET 6、VS2022一起发布,本文按照.NET的发布顺序,根据微软官方文档整理C#中一些有趣的语法特性。 注:基于不同.NET平台创建的项目,默认支持的C#版本是不一样的。下面介绍 阅读全文
posted @ 2021-11-18 16:13 vba是最好的语言 阅读(299) 评论(0) 推荐(0) 编辑
摘要:领域驱动设计 - HackerVirus - 博客园 (cnblogs.com) 阅读全文
posted @ 2021-11-17 10:47 vba是最好的语言 阅读(12) 评论(0) 推荐(0) 编辑
摘要:首先看下源码: // Joins an array of strings together as one string with a separator between each original string. // [System.Security.SecuritySafeCritical] / 阅读全文
posted @ 2021-11-17 10:27 vba是最好的语言 阅读(181) 评论(0) 推荐(0) 编辑
摘要:public static IEnumerable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) { return 阅读全文
posted @ 2021-11-16 16:29 vba是最好的语言 阅读(70) 评论(0) 推荐(0) 编辑
摘要:源码: public static TSource First<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) { if (source == null) throw Error.ArgumentNu 阅读全文
posted @ 2021-11-16 16:26 vba是最好的语言 阅读(25) 评论(0) 推荐(0) 编辑
摘要:源码: public static IEnumerable<TSource> Except<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second) { if (first == null) throw Error. 阅读全文
posted @ 2021-11-16 16:25 vba是最好的语言 阅读(34) 评论(0) 推荐(0) 编辑
摘要:源码: public static IEnumerable<TSource> Distinct<TSource>(this IEnumerable<TSource> source) { if (source == null) throw Error.ArgumentNull("source"); r 阅读全文
posted @ 2021-11-16 16:23 vba是最好的语言 阅读(32) 评论(0) 推荐(0) 编辑
摘要:public class People { private string _Name = "小明"; public string Name { get { return _Name; } set { _Name = value; } } private int _Age = 15; public i 阅读全文
posted @ 2021-11-16 16:15 vba是最好的语言 阅读(92) 评论(0) 推荐(0) 编辑
摘要:源码: public static IEnumerable<TResult> Empty<TResult>() { return EmptyEnumerable<TResult>.Instance; } // // We have added some optimization in SZArray 阅读全文
posted @ 2021-11-16 16:05 vba是最好的语言 阅读(37) 评论(0) 推荐(0) 编辑
摘要:源码: public static TSource ElementAt<TSource>(this IEnumerable<TSource> source, int index) { if (source == null) throw Error.ArgumentNull("source"); IL 阅读全文
posted @ 2021-11-16 15:50 vba是最好的语言 阅读(35) 评论(0) 推荐(0) 编辑
摘要:源码: public static IEnumerable<TSource> Distinct<TSource>(this IEnumerable<TSource> source) { if (source == null) throw Error.ArgumentNull("source"); r 阅读全文
posted @ 2021-11-16 15:34 vba是最好的语言 阅读(33) 评论(0) 推荐(0) 编辑
摘要:源码: public static IEnumerable<TSource> DefaultIfEmpty<TSource>(this IEnumerable<TSource> source) { return DefaultIfEmpty(source, default(TSource)); } 阅读全文
posted @ 2021-11-16 15:18 vba是最好的语言 阅读(149) 评论(0) 推荐(0) 编辑
摘要:分析一个Microsoft Docs文档案例: 地址:ICollection<T> 接口 (System.Collections.Generic) | Microsoft Docs using System; using System.Collections; using System.Collec 阅读全文
posted @ 2021-11-16 13:58 vba是最好的语言 阅读(76) 评论(0) 推荐(0) 编辑
摘要:源码: public static int Count<TSource>(this IEnumerable<TSource> source) { if (source == null) throw Error.ArgumentNull("source"); ICollection<TSource> 阅读全文
posted @ 2021-11-15 17:17 vba是最好的语言 阅读(253) 评论(0) 推荐(0) 编辑
摘要:源码: public static bool Contains<TSource>(this IEnumerable<TSource> source, TSource value) { ICollection<TSource> collection = source as ICollection<TS 阅读全文
posted @ 2021-11-15 16:00 vba是最好的语言 阅读(165) 评论(0) 推荐(0) 编辑
摘要:源码: public static IEnumerable<TSource> Concat<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second) { if (first == null) throw Error. 阅读全文
posted @ 2021-11-15 15:21 vba是最好的语言 阅读(59) 评论(0) 推荐(0) 编辑
摘要:源码: public static IEnumerable<TResult> Cast<TResult>(this IEnumerable source) { IEnumerable<TResult> typedSource = source as IEnumerable<TResult>; if 阅读全文
posted @ 2021-11-15 15:15 vba是最好的语言 阅读(68) 评论(0) 推荐(0) 编辑
摘要:public static float? Average(this IEnumerable<float?> source) { if (source == null) throw Error.ArgumentNull("source"); double sum = 0; long count = 0 阅读全文
posted @ 2021-11-15 14:57 vba是最好的语言 阅读(28) 评论(0) 推荐(0) 编辑
摘要:官网上给的案例: // Custom class. class Clump<T> : List<T> { // Custom implementation of Where(). public IEnumerable<T> Where(Func<T, bool> predicate) { Conso 阅读全文
posted @ 2021-11-15 14:52 vba是最好的语言 阅读(935) 评论(0) 推荐(0) 编辑
摘要:相关源码: public static bool All<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) { if (source == null) throw Error.ArgumentNull( 阅读全文
posted @ 2021-11-15 14:20 vba是最好的语言 阅读(45) 评论(0) 推荐(0) 编辑
摘要:记录一次开发遇到的问题,项目是asp.net,webform,老项目了 前端是两个下拉框可以双击到另外一个下拉框里面的。 <div style="float: left; padding-top: 40px;"> <div style="height: 20px; margin-left: 11px 阅读全文
posted @ 2021-11-14 11:39 vba是最好的语言 阅读(30) 评论(0) 推荐(0) 编辑
摘要:DASM一下 ListItem : .method assembly hidebysig instance object SaveViewState() cil managed { // Code size 89 (0x59) .maxstack 4 //定义函数代码所用堆栈的最大深度,也指valu 阅读全文
posted @ 2021-11-13 23:36 vba是最好的语言 阅读(60) 评论(0) 推荐(0) 编辑
摘要://TSource Aggregate<TSource>(this IEnumerable<TSource> source, Func<TSource, TSource, TSource> func); //求和 var list = Enumerable.Range(1, 100); var co 阅读全文
posted @ 2021-11-11 15:23 vba是最好的语言 阅读(65) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.cnblogs.com/daxnet/archive/2010/11/02/1867392.html 今天抽空将我写的与领域驱动设计有关的系列文章汇总于此,便于大家查看。根据撰写的进度,本列表会不定期更新,敬请关注! Entity Framework之领域驱动设计实践 E 阅读全文
posted @ 2021-11-10 13:03 vba是最好的语言 阅读(86) 评论(0) 推荐(0) 编辑
摘要:管理视图状态的类:StateBagStateBag类为控件提供属性保存的功能。StateBag类被成为状态包,其所包含的内容是页面上所有控件的属性集合,这些集合在.NET中以Control.ViewState的形式被访问。举例来说,一个TextBox在页面回发时,如何保存用户已经填写的数据?这就需要 阅读全文
posted @ 2021-11-10 12:13 vba是最好的语言 阅读(81) 评论(0) 推荐(0) 编辑
摘要:internal static string MapStringAttributeToString(string s) { // If it's an empty string, change it to null if (s != null && s.Length == 0) return nul 阅读全文
posted @ 2021-11-10 11:18 vba是最好的语言 阅读(25) 评论(0) 推荐(0) 编辑
摘要:AspNetPager分页控件使用方法 一、下载AspNetPager.dll 二、AspNetPager.dll复制于应用程序下的bin目录,打开解决方案,引用dll文件 三、 在工具栏中添加控件,这样可以支持拖拽使用 四、 要使用AspNetPager 要为其设置最基本的属性 示例: 1、前台显 阅读全文
posted @ 2021-11-01 23:46 vba是最好的语言 阅读(77) 评论(0) 推荐(0) 编辑
摘要:namespace System { [__DynamicallyInvokable, ComVisible(true)] [Serializable] public delegate void EventHandler(object sender, EventArgs e); } 阅读全文
posted @ 2021-11-01 22:19 vba是最好的语言 阅读(36) 评论(0) 推荐(0) 编辑
摘要:string hwrdstr = string.Empty ; hwrdstr = string.Join("、",userEntityList.Select(x => x.Account)); 阅读全文
posted @ 2021-11-01 19:26 vba是最好的语言 阅读(102) 评论(0) 推荐(0) 编辑
摘要:本文实例讲述了JS获取子节点、父节点和兄弟节点的方法。分享给大家供大家参考,具体如下: 一、js获取子节点的方式 1. 通过获取dom方式直接获取子节点 其中test的父标签id的值,div为标签的名字。getElementsByTagName是一个方法。返回的是一个数组。在访问的时候要按数组的形式 阅读全文
posted @ 2021-11-01 16:46 vba是最好的语言 阅读(706) 评论(0) 推荐(0) 编辑

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