Beispiel #1
0
        public void Accept(IPropertyContainer container, IPropertyVisitor visitor)
        {
            // TODO: in read-write scenarios, we should throw here

            Debug.Assert(container is TContainer, $"container of type {container.GetType()} and not type {typeof(TContainer)} on property {Name}");
            var t = (TContainer)container;

            Accept(ref t, visitor);
        }
Beispiel #2
0
 public void Accept(IPropertyContainer container, IPropertyVisitor visitor)
 {
     Debug.Assert(container is TContainer, $"container of type {container.GetType()} and not type {typeof(TContainer)} on property {Name}");
     Accept((TContainer)container, visitor);
 }
Beispiel #3
0
        public void IncrementVersion(IProperty property, IPropertyContainer container)
        {
            Assert.IsTrue(container is IRegistryObject, $"{UTinyConstants.ApplicationName}: VersionStorage.IncrementVersion should only be called with a IRegistryObject container. Actual type is { container.GetType() }");

            int version;

            m_Versions.TryGetValue(container, out version);
            m_Versions[container] = ++version;
            m_Changed.Add(container);
        }