/// <summary> /// Resolves a type alias or type fullname to a concrete type /// </summary> /// <param name="typeName">Type alias or type fullname</param> /// <returns>The concrete Type</returns> public Type ResolveType(string typeName) { UnityTypeAlias typeAlias = typeAliases[typeName]; if (typeAlias == null) { return(Type.GetType(typeName, true)); } return(typeAlias.Type); }
///<summary> ///Gets the element key for a specified configuration element when overridden in a derived class. ///</summary> /// ///<returns> ///An <see cref="T:System.Object"></see> that acts as the key for the specified <see cref="T:System.Configuration.ConfigurationElement"></see>. ///</returns> /// ///<param name="element">The <see cref="T:System.Configuration.ConfigurationElement"></see> to return the key for. </param> protected override object GetElementKey(ConfigurationElement element) { UnityTypeAlias typeAliasElement = (UnityTypeAlias)element; return(typeAliasElement.Alias); }