From 950e30c35f9946573cf3e6c9718095022d9cdf47 Mon Sep 17 00:00:00 2001 From: Twinki Date: Sat, 30 Dec 2023 00:25:16 -0500 Subject: [PATCH] Add `get` `set` to PropertyToken._position (#6) # Motivations This property was init-only, which is not compatable with FiveM's mono --- README.md | 1 + src/Serilog/Parsing/PropertyToken.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0916fee0e..180d15f48 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ logger.Information("Hello from the FiveM client!"); - [#2](https://github.com/Twinki14/CitizenFX.Extensions.Client.Serilog/pull/2) - Add CI/CD proceeded by fix [in #4](https://github.com/Twinki14/CitizenFX.Extensions.Client.Serilog/pull/4) - [#3](https://github.com/Twinki14/CitizenFX.Extensions.Client.Serilog/pull/3) - Remove extra performance tests & results, this just bloated things for the purpose of this fork - [#5](https://github.com/Twinki14/CitizenFX.Extensions.Client.Serilog/pull/5) - Un-yield `yield return` and `yield break` uses +- [#6](https://github.com/Twinki14/CitizenFX.Extensions.Client.Serilog/pull/6) - Add `get` `set` to PropertyToken._position ## Notes - This fork is in **NO WAY** affiliated with the [Serilog Organization](https://github.com/serilog) or the [Serilog project](https://serilog.net/), it's purely a fork to provide compatability with FiveM's client-resource shipped mono diff --git a/src/Serilog/Parsing/PropertyToken.cs b/src/Serilog/Parsing/PropertyToken.cs index db0566231..af0941881 100644 --- a/src/Serilog/Parsing/PropertyToken.cs +++ b/src/Serilog/Parsing/PropertyToken.cs @@ -19,7 +19,7 @@ namespace Serilog.Parsing; /// public sealed class PropertyToken : MessageTemplateToken { - readonly int? _position; + int? _position { get; set; } /// /// Construct a .