-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic support for IEnumerable<T> for both instance and mem… (#343)
* Added failing test. * Added basic support for IEnumerable<T> for both instance and member property definitions. * Adding documentation.
- Loading branch information
Mike-EEE
authored
Dec 11, 2019
1 parent
b5b6dee
commit 697ab2e
Showing
25 changed files
with
399 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/ExtendedXmlSerializer/ContentModel/Content/RuntimeElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
src/ExtendedXmlSerializer/ContentModel/Content/VariableTypeElement.cs
This file was deleted.
Oops, something went wrong.
19 changes: 14 additions & 5 deletions
19
src/ExtendedXmlSerializer/ContentModel/Members/MemberContents.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
using ExtendedXmlSerializer.Core.Sources; | ||
using ExtendedXmlSerializer.Core.Specifications; | ||
using JetBrains.Annotations; | ||
|
||
namespace ExtendedXmlSerializer.ContentModel.Members | ||
{ | ||
sealed class MemberContents : DecoratedSource<IMember, ISerializer>, IMemberContents | ||
interface IMemberContentsCore : IMemberContents {} | ||
|
||
[UsedImplicitly] | ||
sealed class MemberContentsCore : DecoratedSource<IMember, ISerializer>, IMemberContentsCore | ||
{ | ||
readonly static ISpecification<IMember> Specification = VariableTypeMemberSpecifications.Default.IfAssigned(); | ||
|
||
public MemberContents(DefaultMemberContents @default, VariableTypeMemberContents variable, | ||
RegisteredMemberContents registered) | ||
: base(@default.Let(Specification, variable) | ||
.Let(registered, registered)) {} | ||
public MemberContentsCore(DefaultMemberContents @default, VariableTypeMemberContents variable) | ||
: base(@default.Let(Specification, variable)) {} | ||
} | ||
|
||
[UsedImplicitly] | ||
sealed class MemberContents : DecoratedSource<IMember, ISerializer>, IMemberContents | ||
{ | ||
public MemberContents(IMemberContentsCore core, RegisteredMemberContents registered) | ||
: base(core.Let(registered, registered)) {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.