/// <summary>
        /// Creates a new instance of <see cref="LocalResourceProvider2"/> with the
        /// specified virtual path and resource file resolver.
        /// </summary>
        /// <param name="virtualPath">
        /// The virtual path of the file for which the local resources should be obtained.
        /// </param>
        /// <param name="resolver">
        /// The instance of the <see cref="IResourceFileResolver"/> which will be used to
        /// resolve resource files associated with the file being represented by the virtual
        /// path argument.
        /// </param>
        public LocalResourceProvider2(string virtualPath, IResourceFileResolver resolver)
        {
            if (string.IsNullOrEmpty(virtualPath))
                throw new ArgumentNullException("virtualPath");

            this.virtualPath = virtualPath;
            this.resourceFileResolver = resolver;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of <see cref="LocalResourceProvider2"/> with the
        /// specified virtual path and resource file resolver.
        /// </summary>
        /// <param name="virtualPath">
        /// The virtual path of the file for which the local resources should be obtained.
        /// </param>
        /// <param name="resolver">
        /// The instance of the <see cref="IResourceFileResolver"/> which will be used to
        /// resolve resource files associated with the file being represented by the virtual
        /// path argument.
        /// </param>
        public LocalResourceProvider2(string virtualPath, IResourceFileResolver resolver)
        {
            if (string.IsNullOrEmpty(virtualPath))
            {
                throw new ArgumentNullException("virtualPath");
            }

            this.virtualPath          = virtualPath;
            this.resourceFileResolver = resolver;
        }