Serialize.Linq is a .NET library that provides functionality to serialize and deserialize LINQ expressions. This library is useful in scenarios where you need to send LINQ expressions over the wire or persist them in a database.
BinaryFormatter
. For more details, see the BinaryFormatter Security Guide.You can install Serialize.Linq via NuGet:
Install-Package Serialize.Linq
Here's a simple example of how to use Serialize.Linq:
// Create an expression Expression<Func<int, bool>> expression = num => num < 5; // Create a serializer var serializer = new ExpressionSerializer(new JsonSerializer()); // Serialize the expression string serializedExpression = serializer.SerializeText(expression); // Deserialize the expression var deserializedExpression = serializer.DeserializeText(serializedExpression);
We welcome contributions to Serialize.Linq! If you'd like to contribute, please fork the repository, make your changes, and submit a pull request. If you're not sure where to start, take a look at our open issues.
For bugs: make sure you create a unit test, so it is easier for me to reproduce and fix it.
You can always buy me a coffee ☕.
Serialize.Linq has a comprehensive test suite. You can run the tests using your preferred test runner.
Supported Platforms (or known to work with)Serialize.Linq is licensed under the MIT License. See the LICENSE file for more details.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4