Undefined.Serializer
1.0.0
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Undefined.Serializer --version 1.0.0
NuGet\Install-Package Undefined.Serializer -Version 1.0.0
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="Undefined.Serializer" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Undefined.Serializer --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Undefined.Serializer, 1.0.0"
#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 Undefined.Serializer as a Cake Addin #addin nuget:?package=Undefined.Serializer&version=1.0.0 // Install Undefined.Serializer as a Cake Tool #tool nuget:?package=Undefined.Serializer&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EXAMPLE:
[ConverterParams(IncludeDataType.Field | IncludeDataType.Property)] //BY DEFAULT
private struct ExampleStruct : IDeserializeHandler, ISerializeHandler
{
private long[,] _array;
public int Value1 { get; }
public string Value2 { get; }
[Exclude]
public ushort ExcludeValue { get; } //will not serialized / deserialized
public ExampleStruct(long[,] array, int value1, string value2, ushort excludeValue)
{
_array = array;
Value1 = value1;
Value2 = value2;
ExcludeValue = excludeValue;
}
public void OnDeserialize() => Console.WriteLine("Deserialized");
public void OnSerialize() => Console.WriteLine("Serialized");
}
private static void Example()
{
var converter = DataConverter.GetDefault();
var array = new long[10,10];
var random = new Random();
for (var x = 0; x < array.GetLength(0); x++)
for (var y = 0; y < array.GetLength(1); y++)
array[x, y] = random.NextInt64();
var obj = new ExampleStruct(array, random.Next(), "HELLO WORLD", 19);
var buffer = converter.Serialize(obj, true);
var newObject = converter.Deserialize<ExampleStruct>(buffer);
//do something
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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 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 is compatible. 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. |
.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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
-
net6.0
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
-
net8.0
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Undefined.Serializer:
Package | Downloads |
---|---|
Undefined.Networking
Beautiful and very useful client-server API |
GitHub repositories
This package is not used by any popular GitHub repositories.