Wjybxx.Commons.Core 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Wjybxx.Commons.Core --version 1.1.1                
NuGet\Install-Package Wjybxx.Commons.Core -Version 1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Wjybxx.Commons.Core" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Wjybxx.Commons.Core --version 1.1.1                
#r "nuget: Wjybxx.Commons.Core, 1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Wjybxx.Commons.Core as a Cake Addin
#addin nuget:?package=Wjybxx.Commons.Core&version=1.1.1

// Install Wjybxx.Commons.Core as a Cake Tool
#tool nuget:?package=Wjybxx.Commons.Core&version=1.1.1                

Core

Core模块包含一些基础的工具类和注解,这些基础工具和注解被其它所有模块依赖。

Collections

Core的主要内容是集合库,但凡C#的基础集合库好用一点,我也不至于自己造轮子,实现的集合类:

  1. LinkedDictionary 保持插入顺序的字典,并提供大量的有用方法。
  2. LinkedHashSet 保持插入顺序的Set,并提供大量的有用方法。
  3. IndexedPriorityQueue 含索引的优先级队列,高查询和删除效率。
  4. BoundedArrayDeque 基于数组的有界双端队列,允许手动调整容量。
  5. MultiChunkDeque 分块无界双端队列。
  6. ImmutableLinkedHastSet 保持插入序的不可变HashSet。
  7. ImmutableLinkedDictionary 保持插入序的不可变Dictionary。

LinkedDictionary特殊接口示例:


    public class LinkedDictionary<TKey,TValue> {
        TKey PeekFirstKey();
        TKey PeekLastKey();
        void AddFirst(TKey key, TValue value);
        void AddLast(TKey key, TValue value);
        KeyValuePair<TKey, TValue> RemoveFirst();
        KeyValuePair<TKey, TValue> RemoveLast();
        TValue GetAndMoveToFirst(TKey key);        
        TValue GetAndMoveToLast(TKey key);
    }
    
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Wjybxx.Commons.Core:

Package Downloads
Wjybxx.Dson

Dson-有点奇怪的配置文件格式和序列化方案

Wjybxx.Commons.Concurrent

并发基础库;提供事件循环和基于事件循环的await语法

Wjybxx.Commons.Apt

注解处理器工具,结构化代码生成工具

Wjybxx.BTree.Core

BTree-非典型的高性能行为树实现

Wjybxx.Dson.Core

Dson-有点奇怪的配置文件格式和序列化方案

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 91 11/6/2024
1.2.0 179 10/28/2024
1.1.1 503 8/25/2024
1.1.0 319 8/21/2024
1.1.0-rc3 134 7/31/2024
1.1.0-rc2 165 7/21/2024
1.1.0-rc1 174 7/14/2024
1.0.15 188 6/29/2024
1.0.14 109 5/22/2024
1.0.13 174 5/12/2024
1.0.12 168 4/11/2024
1.0.11 144 4/9/2024
1.0.10 125 4/8/2024
1.0.9 140 4/3/2024
1.0.8 140 3/18/2024
1.0.7 186 1/7/2024
1.0.6 149 1/6/2024
1.0.5 101 1/4/2024
1.0.4 136 1/2/2024
1.0.3 126 1/1/2024
1.0.2 234 12/26/2023
1.0.1 153 12/24/2023
1.0.0 174 12/23/2023
1.0.0-alpha 139 12/23/2023