![]() |
VOOZH | about |
dotnet add package Shapeless --version 1.2.4
NuGet\Install-Package Shapeless -Version 1.2.4
<PackageReference Include="Shapeless" Version="1.2.4" />
<PackageVersion Include="Shapeless" Version="1.2.4" />Directory.Packages.props
<PackageReference Include="Shapeless" />Project file
paket add Shapeless --version 1.2.4
#r "nuget: Shapeless, 1.2.4"
#:package Shapeless@1.2.4
#addin nuget:?package=Shapeless&version=1.2.4Install as a Cake Addin
#tool nuget:?package=Shapeless&version=1.2.4Install as a Cake Tool
👁 license
👁 nuget
👁 dotNET China
Shapeless is a high-performance C# open-source library that offers a flexible manipulation experience akin to JavaScript JSON, supporting dynamic addition, deletion, lookup, and modification along with Linq and Lambda expression queries. It significantly simplifies the construction and manipulation of runtime objects while maintaining simplicity and robust performance characteristics.
JSON Manipulation: Offers functionalities for adding, deleting, querying, and modifying similar to
JavaScript, with compatibility for Linq and Lambda expressions.Web Development Friendly: Seamlessly integrates with ASP.NET Core WebAPI and MVC, simplifying HTTP request
handling and API development processes.JSON serialization and deserialization capabilities, suitable for data
exchange and storage needs.JSON objects, automatically
triggering event notifications.98%..NET 8+ Compatibility: Can be deployed and used in environments running .NET 8 and higher versions.dotnet add package Shapeless
We have many examples on our homepage. Here's your first one to get you started:
dynamic clay = Clay.Parse("""{"id":1,"name":"shapeless"}""");
// Add Property
clay.author = "百小僧";
clay["company"] = "百签科技";
clay.homepage = new[] { "https://furion.net/", "https://baiqian.com" };
clay.number = 10;
// Add Method
clay.sayHello = (Func<string>)(() => $"Hello, {clay.name}!");
clay.Increment = new Action(() => clay.number++);
// Call Method
Console.WriteLine(clay.number); // number: 10
clay.Increment();
Console.WriteLine(clay.number); // number: 11
// Print JSON
Console.WriteLine($"{clay.sayHello()}\r\n{clay:UZ}");
After running the above code, the console outputs the following content:
10
11
Hello, shapeless!
{"id":1,"name":"shapeless","author":"百小僧","company":"百签科技","homepage":["https://furion.net/","https://baiqian.com"],"number":11}
You can find the Shapeless documentation on our homepage.
The main purpose of this repository is to continue developing the core of Shapeless, making it faster and easier to use. The development of Shapeless is publicly hosted on Gitee, and we appreciate community contributions for bug fixes and improvements.
Shapeless is released under the open source license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. net11.0 net11.0 is compatible. |
Showing the top 3 NuGet packages that depend on Shapeless:
| Package | Downloads |
|---|---|
|
Shapeless.AspNetCore
Furion 框架流变对象模块。 |
|
|
Purcell
一个超高性能的Excel强类型读写映射库。(支持.xls .xlsx .csv) |
|
|
ITPortal.Core
核心框架,集成了多个通用功能模块 |
This package is not used by any popular GitHub repositories.