public ResourceHelper(IAdminHost target, Assembly source) { if (target == null) { throw new ArgumentNullException("target"); } if (source == null) { throw new ArgumentNullException("source"); } this.Source = source; this.Namespace = source.GetName().Name; this.Target = target; }
public ResourceHelper(IAdminHost target, object plugin) : this(target, plugin.GetType()) { }
public ResourceHelper(IAdminHost target, Type pluginType) : this(target, pluginType.GetTypeInfo().Assembly) { this.Namespace = pluginType.Namespace; }