Exemplo n.º 1
0
        /// <summary>
        /// Uses the key and target to build a fully qualified resource key (Assembly, Dictionary, Key)
        /// </summary>
        /// <param name="key">Key used as a base to find the full key</param>
        /// <param name="target">Target used to help determine key information</param>
        /// <param name="provider">Provider to use</param>
        /// <returns>Returns an object with all possible pieces of the given key (Assembly, Dictionary, Key)</returns>
        public FullyQualifiedResourceKeyBase GetFullyQualifiedResourceKey(String key, DependencyObject target, ILocalizationProvider provider)
        {
            if (provider == null)
            {
                throw new InvalidOperationException("No provider found and no default provider given.");
            }

            return(provider.GetFullyQualifiedResourceKey(key, target));
        }
        /// <summary>
        /// Uses the key and target to build a fully qualified resource key (Assembly, Dictionary, Key)
        /// </summary>
        /// <param name="key">Key used as a base to find the full key</param>
        /// <param name="target">Target used to help determine key information</param>
        /// <param name="provider">Provider to use</param>
        /// <returns>Returns an object with all possible pieces of the given key (Assembly, Dictionary, Key)</returns>
        public FullyQualifiedResourceKey GetFullyQualifiedResourceKey(String key, DependencyObject target, ILocalizationProvider provider)
        {
            if (provider == null)
                throw new InvalidOperationException("No provider found and no default provider given.");

            return provider.GetFullyQualifiedResourceKey(key, target);
        }