Path: redb/redb.Tests.Integration/Models/TopLevelCollectionModels.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Tests.Integration/Models/TopLevelCollectionModels.cs ---- using System.Collections.Generic; using System.Collections.ObjectModel; using redb.Core.Attributes; namespace redb.Tests.Integration.Models; // Collection types at the top of a property, one class per shape. The refused shapes carry no [RedbScheme]: the start // of a test service syncs every [RedbScheme] class it finds, and a refused shape must not stop it. public class TopHashSetProps { public HashSet? Value { get; set; } } public class TopISetProps { public ISet? Value { get; set; } } public class TopObservableCollectionProps { public ObservableCollection? Value { get; set; } } public class TopQueueProps { public Queue? Value { get; set; } } public class TopStackProps { public Stack? Value { get; set; } } public class TopIReadOnlyListProps { public IReadOnlyList? Value { get; set; } } public class TopSortedDictionaryProps { public SortedDictionary? Value { get; set; } } public class TopIReadOnlyDictionaryProps { public IReadOnlyDictionary? Value { get; set; } } public class TopListOfIntProps { public List? Value { get; set; } } public class TopIEnumerableOfLongProps { public IEnumerable? Value { get; set; } } public class TopIEnumerableOfStringProps { public IEnumerable? Value { get; set; } } public class TopICollectionOfStringProps { public ICollection? Value { get; set; } } public class TopIDictionaryProps { public IDictionary? Value { get; set; } } // A supported shape inside a class element, with a refused one beside it. public class TopHashSetHolder { public string? Label { get; set; } public HashSet? Tags { get; set; } } public class TopHashSetInElementProps { public List? Items { get; set; } } // Save guard: twin shapes that sync to one String structure, as the refused types did before the refusal existed. [RedbScheme("TestTopSaveGuardString")] public class TopSaveGuardStringShape { public string? Value { get; set; } } [RedbScheme("TestTopSaveGuardElement")] public class TopSaveGuardElementShape { public List? Items { get; set; } } public class TopSaveGuardElementHolder { public string? Label { get; set; } public string? Tags { get; set; } }