Exemple #1
0
        public static void LoadType([NotNull] Type type, [NotNull] RenderingEditorAttribute attribute)
        {
            Assert.ArgumentNotNull(type, nameof(type));
            Assert.ArgumentNotNull(attribute, nameof(attribute));

            var descriptor = new RenderingEditorDescriptor(type, attribute.RenderingId, attribute);

            descriptors.Add(descriptor);
        }
Exemple #2
0
            public RenderingEditorDescriptor([NotNull] Type type, [NotNull] string renderingId, [NotNull] RenderingEditorAttribute attribute)
            {
                Assert.ArgumentNotNull(type, nameof(type));
                Assert.ArgumentNotNull(renderingId, nameof(renderingId));
                Assert.ArgumentNotNull(attribute, nameof(attribute));

                Type        = type;
                RenderingId = renderingId;
                Attribute   = attribute;
            }