Damian Romanowski
Damian Romanowski
I think the converter could be simplified to only use properties from `IOneOf` interface https://github.com/mcintyre321/OneOf/blob/014d68f723e1b772987f50c82016e6bfc09ee3f5/OneOf/IOneOf.cs#L3-L7 and it could be used for both serialization and deserialization
If we choose to stay with `As/IsT1` we can add XML comments with appropriate descriptions explaining what 0/1/2 stands for eg:  but we will have similar problem because there...
source generator simply generates new .cs files and you cant generate file that matches this: ```csharp public class MyClass { [GenerateOneOf] public partial class Result : OneOfBase {} } ```...
oh it also does not work, @mcintyre321 something must be wrong with AppVeyor build😿
for interfaces you have to use `FromTX` methods ```csharp OneOf test_fail = OneOf.FromT0(IFoo.AFoo); ``` for concrete types you can implement custom implicit/explicit operators (like it is descripted in the readme...
I tried bumping Source Gen to NET 6 but there were some problems with AppVeyor build :/ https://github.com/mcintyre321/OneOf/pull/124
its due to ``` Warning CS8785 Generator 'OneOfGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of...
@ajcvickers please note the `Name` property in `Building` class, in the last case you mentioned, `Name` should be also present in the query, but the query only selects ids `includes`...