├── .editorconfig ├── .github └── workflows │ ├── build_nuget_dont_publish.yml │ ├── dotnet.yml │ └── publish_nuget.yml ├── .gitignore ├── AltaSoft.ChoiceGenerator.sln ├── Directory.Build.props ├── LICENSE ├── README.md ├── clean.bat ├── nuget.exe ├── src ├── AltaSoft.Choice.Generator │ ├── AltaSoft.Choice.Generator.csproj │ ├── ChoiceGenerator.cs │ ├── Executor.cs │ ├── Extensions │ │ ├── CompilationExt.cs │ │ └── RoslynExt.cs │ ├── Helpers │ │ ├── Constants.cs │ │ ├── DiagnosticHelper.cs │ │ └── SourceCodeBuilder.cs │ ├── Models │ │ └── PropertyDetails.cs │ └── lib │ │ └── netstandard2.0 │ │ └── _._ └── AltaSoft.Choice │ ├── AltaSoft.Choice.csproj │ ├── AssemblyAttributes.cs │ ├── ChoiceAttribute.cs │ ├── ChoicePropertyAttribute.cs │ ├── ChoiceTypePropertyAttribute.cs │ ├── XmlNamespaceHelper.cs │ └── XmlTagAttribute.cs └── tests ├── AltaSoft.Choice.Generator.SnapshotTests ├── AltaSoft.Choice.Generator.SnapshotTests.csproj ├── ChoiceGeneratorTest.cs ├── ModuleInitializer.cs ├── Snapshots │ ├── ChoiceGeneratorTest.ChoiceTypeShouldGenerateAllMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs │ ├── ChoiceGeneratorTest.ChoiceTypeShouldGenerateDocumentationCorrectly_ForArrayInChoice#ArrayInTypeChoice.g.verified.cs │ └── ChoiceGeneratorTest.ChoiceTypeShouldNotGenerateImplicitMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs └── TestHelpers.cs └── AltaSoft.ChoiceGenerator.Tests ├── AltaSoft.ChoiceGenerator.Tests.csproj ├── ArrayInTypeChoice.cs ├── Authorisation1Choice.cs ├── ChoiceGeneratorTests.cs ├── DateTypeChoice.cs ├── OtherNamespace ├── Authorisation1Code.cs └── Proprietary.cs ├── TwoDifferentTypeChoice.cs ├── TwoSameTypeChoice.cs └── TwoValueTypeChoice.cs /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/build_nuget_dont_publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/.github/workflows/build_nuget_dont_publish.yml -------------------------------------------------------------------------------- /.github/workflows/dotnet.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/.github/workflows/dotnet.yml -------------------------------------------------------------------------------- /.github/workflows/publish_nuget.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/.github/workflows/publish_nuget.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/.gitignore -------------------------------------------------------------------------------- /AltaSoft.ChoiceGenerator.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/AltaSoft.ChoiceGenerator.sln -------------------------------------------------------------------------------- /Directory.Build.props: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/Directory.Build.props -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/README.md -------------------------------------------------------------------------------- /clean.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/clean.bat -------------------------------------------------------------------------------- /nuget.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/nuget.exe -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/AltaSoft.Choice.Generator.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/AltaSoft.Choice.Generator.csproj -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/ChoiceGenerator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/ChoiceGenerator.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/Executor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/Executor.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/Extensions/CompilationExt.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/Extensions/CompilationExt.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/Extensions/RoslynExt.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/Extensions/RoslynExt.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/Helpers/Constants.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/Helpers/Constants.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/Helpers/DiagnosticHelper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/Helpers/DiagnosticHelper.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/Helpers/SourceCodeBuilder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/Helpers/SourceCodeBuilder.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/Models/PropertyDetails.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice.Generator/Models/PropertyDetails.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice.Generator/lib/netstandard2.0/_._: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/AltaSoft.Choice/AltaSoft.Choice.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice/AltaSoft.Choice.csproj -------------------------------------------------------------------------------- /src/AltaSoft.Choice/AssemblyAttributes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice/AssemblyAttributes.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice/ChoiceAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice/ChoiceAttribute.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice/ChoicePropertyAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice/ChoicePropertyAttribute.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice/ChoiceTypePropertyAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice/ChoiceTypePropertyAttribute.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice/XmlNamespaceHelper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice/XmlNamespaceHelper.cs -------------------------------------------------------------------------------- /src/AltaSoft.Choice/XmlTagAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/src/AltaSoft.Choice/XmlTagAttribute.cs -------------------------------------------------------------------------------- /tests/AltaSoft.Choice.Generator.SnapshotTests/AltaSoft.Choice.Generator.SnapshotTests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.Choice.Generator.SnapshotTests/AltaSoft.Choice.Generator.SnapshotTests.csproj -------------------------------------------------------------------------------- /tests/AltaSoft.Choice.Generator.SnapshotTests/ChoiceGeneratorTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.Choice.Generator.SnapshotTests/ChoiceGeneratorTest.cs -------------------------------------------------------------------------------- /tests/AltaSoft.Choice.Generator.SnapshotTests/ModuleInitializer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.Choice.Generator.SnapshotTests/ModuleInitializer.cs -------------------------------------------------------------------------------- /tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldGenerateAllMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldGenerateAllMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs -------------------------------------------------------------------------------- /tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldGenerateDocumentationCorrectly_ForArrayInChoice#ArrayInTypeChoice.g.verified.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldGenerateDocumentationCorrectly_ForArrayInChoice#ArrayInTypeChoice.g.verified.cs -------------------------------------------------------------------------------- /tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldNotGenerateImplicitMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.Choice.Generator.SnapshotTests/Snapshots/ChoiceGeneratorTest.ChoiceTypeShouldNotGenerateImplicitMethodsAndCompileCorrectly#Authorisation1Choice.g.verified.cs -------------------------------------------------------------------------------- /tests/AltaSoft.Choice.Generator.SnapshotTests/TestHelpers.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.Choice.Generator.SnapshotTests/TestHelpers.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/AltaSoft.ChoiceGenerator.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/AltaSoft.ChoiceGenerator.Tests.csproj -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/ArrayInTypeChoice.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/ArrayInTypeChoice.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/Authorisation1Choice.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/Authorisation1Choice.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/ChoiceGeneratorTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/ChoiceGeneratorTests.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/DateTypeChoice.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/DateTypeChoice.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/OtherNamespace/Authorisation1Code.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/OtherNamespace/Authorisation1Code.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/OtherNamespace/Proprietary.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/OtherNamespace/Proprietary.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/TwoDifferentTypeChoice.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/TwoDifferentTypeChoice.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/TwoSameTypeChoice.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/TwoSameTypeChoice.cs -------------------------------------------------------------------------------- /tests/AltaSoft.ChoiceGenerator.Tests/TwoValueTypeChoice.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altasoft/Choice/HEAD/tests/AltaSoft.ChoiceGenerator.Tests/TwoValueTypeChoice.cs --------------------------------------------------------------------------------