public static void Add([NotNull] string typeName, [NotNull] SkinDescriptor skin) { Assert.ArgumentNotNull(typeName, nameof(typeName)); Assert.ArgumentNotNull(skin, nameof(skin)); Skins.Add(typeName, skin); }
public static void LoadType([NotNull] Type type, [NotNull] ValidationViewerSkinAttribute attribute) { Assert.ArgumentNotNull(type, nameof(type)); Assert.ArgumentNotNull(attribute, nameof(attribute)); var i = type.GetInterface(mediaSkinInterface); if (i == null) { return; } var mediaSkin = new SkinDescriptor(type, attribute.SkinName, attribute.Priority); Add(attribute.SkinName, mediaSkin); }