.NET
风生晚凉
从事SharePoint,ASP.NET,安卓,Java,Web前端,Azure云计算方面的开发。
展开
-
C# FTP的使用
【代码】C# FTP的使用。原创 2024-03-29 10:21:24 · 508 阅读 · 0 评论 -
C# AsyncLocal和ThreadLocal的区别
首先,我们先看不带async的方法:/// <summary> /// Guid工厂 /// </summary> static class GuidFactory { //private static ThreadLocal<string> _localGuid = new ThreadLocal<string>(); private static AsyncLocal<stri..原创 2022-03-22 01:05:23 · 802 阅读 · 0 评论 -
Lucene.Net C#分词操作帮助类
using Lucene.Net.Analysis;using Lucene.Net.Analysis.PanGu;using Lucene.Net.Documents;using Lucene.Net.Index;using Lucene.Net.QueryParsers;using Lucene.Net.Search;using Lucene.Net.Store;using System;using System.Collections.Generic;using System.IO.原创 2021-07-23 09:48:06 · 493 阅读 · 0 评论 -
C# Linq扩展,用于Order By排序中使用对象属性名称的字符串实现排序
public static class LinqExtensions { private static PropertyInfo GetPropertyInfo(Type objType, string name) { var properties = objType.GetProperties(); var matchedProperty = properties.FirstOrDefault(p =>...转载 2020-11-23 23:07:56 · 1439 阅读 · 0 评论 -
RSA非对称加密算法在C#中的实现(.NET/C#实现RSA非对称加密算法)
using Cari.Safety.SSO.Interface;using System;using Org.BouncyCastle.Asn1;using Org.BouncyCastle.Asn1.Pkcs;using Org.BouncyCastle.Asn1.X509;using Org.BouncyCastle.Crypto;using Org.BouncyCastle.Crypto.Encodings;using Org.BouncyCastle.Crypto.Engines;.原创 2020-11-12 13:45:12 · 2139 阅读 · 1 评论