CSharpScriptSerializer 4.1.0
dotnet add package CSharpScriptSerializer --version 4.1.0
NuGet\Install-Package CSharpScriptSerializer -Version 4.1.0
<PackageReference Include="CSharpScriptSerializer" Version="4.1.0" />
<PackageVersion Include="CSharpScriptSerializer" Version="4.1.0" />
<PackageReference Include="CSharpScriptSerializer" />
paket add CSharpScriptSerializer --version 4.1.0
#r "nuget: CSharpScriptSerializer, 4.1.0"
#:package CSharpScriptSerializer@4.1.0
#addin nuget:?package=CSharpScriptSerializer&version=4.1.0
#tool nuget:?package=CSharpScriptSerializer&version=4.1.0
CSharpScriptSerializer
A library that generates C# scripts that can be used to construct the given object:
var input = new Point {X = 1, Y = 1};
var script = CSScriptSerializer.Serialize(input);
var output = CSScriptSerializer.Deserialize<Point>(script);
Here script is equal to "new Point {X = 1, Y = 1}"
See RoundTrippingTest.cs for more examples.
Get it from NuGet.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 5.9.0)
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 5.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.1.0 | 46 | 10/22/2026 |
| 4.0.0 | 490 | 4/6/2026 |
| 3.0.4 | 1,042 | 6/16/2022 |
| 3.0.3 | 655 | 6/16/2022 |
| 3.0.2 | 662 | 6/16/2022 |
| 3.0.1 | 649 | 6/15/2022 |
| 2.0.0 | 1,208 | 2/7/2020 |
| 1.6.1 | 3,734 | 12/7/2018 |
| 1.5.0 | 2,085 | 5/31/2018 |
| 1.4.0 | 1,753 | 8/18/2017 |
| 1.3.0 | 1,420 | 8/15/2017 |
| 1.2.0 | 1,633 | 3/10/2017 |
| 1.1.2 | 1,564 | 3/4/2017 |
| 1.1.1 | 1,531 | 3/4/2017 |
| 1.1.0 | 1,946 | 12/11/2016 |
| 1.0.0 | 1,614 | 11/24/2016 |
Version 4.1.0
* Use index initializer syntax for dictionaries
* Update to Roslyn V5.9.0
Version 4.0.0
* Update to Roslyn V5.3.0
Version 3.0.4
* Simplify empty object initializers
Version 3.0.3
* Simplify empty collections
Version 3.0.2
* Remove trailing new line
Version 3.0.0
* Update to Roslyn V4.2.0
Version 2.0.0
* Update to Roslyn V3.4.0
* Target netstandard2.1
Version 1.6.1
* Update to Roslyn V2.9.0
Version 1.5.0
* Add support for hidden properties
* Update to Roslyn V2.8.0
Version 1.4.0
* Add support for ValueTuple, Type and plain Object