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); }
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; }