private static void InitializeBlendSdkInfos() { if (BlendSdkHelper.blendSdkInfoDictionary == null) { BlendSdkHelper.blendSdkInfoDictionary = new FrameworkNameDictionary <IBlendSdkInfo>(); BlendSdkHelper.BlendSdkInfoDictionary.Add(BlendSdkHelper.Wpf35, new Blend3SdkInfo(BlendSdkHelper.Wpf35)); BlendSdkHelper.BlendSdkInfoDictionary.Add(BlendSdkHelper.Silverlight3, new Blend3SdkInfo(BlendSdkHelper.Silverlight3)); BlendSdkHelper.BlendSdkInfoDictionary.Add(BlendSdkHelper.Wpf4, new Blend4WpfSdkInfo()); BlendSdkHelper.BlendSdkInfoDictionary.Add(BlendSdkHelper.Silverlight4, new Blend4SilverlightSdkInfo()); BlendSdkHelper.BlendSdkInfoDictionary.Add(BlendSdkHelper.WindowsPhone7, new Blend4MobileSdkInfo()); } }
public IEnumerable <string> GetExtensionDirectories(FrameworkName frameworkName) { IEnumerable <string> extensionDirectories; if (this.extensionDirectories == null) { this.extensionDirectories = new FrameworkNameDictionary <IEnumerable <string> >(); } if (!this.extensionDirectories.TryGetValue(frameworkName, out extensionDirectories)) { string str = string.Concat(this.RootToolboxRegistryPath, "\\Toolbox\\{0}\\v{1}"); string customIdentifierFromFrameworkName = this.GetCustomIdentifierFromFrameworkName(frameworkName); string str1 = this.GetCustomVersionFromFrameworkName(frameworkName).ToString(2); CultureInfo invariantCulture = CultureInfo.InvariantCulture; object[] objArray = new object[] { customIdentifierFromFrameworkName, str1 }; string str2 = string.Format(invariantCulture, str, objArray); extensionDirectories = BlendSdkInfoBase.GetExtensionDirectories(str2); this.extensionDirectories.Add(frameworkName, extensionDirectories); } return(extensionDirectories); }