当前位置: 首页>>代码示例>>C#>>正文


C# Properties.GetList方法代码示例

本文整理汇总了C#中Properties.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# Properties.GetList方法的具体用法?C# Properties.GetList怎么用?C# Properties.GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Properties的用法示例。


在下文中一共展示了Properties.GetList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RecentOpen

		public RecentOpen(Properties p)
		{
			// don't check whether files exist because that might be slow (e.g. if file is on network
			// drive that's unavailable)
			this.properties = p;
			recentFiles.AddRange(p.GetList<string>("Files").Select(FileName.Create));
			recentProjects.AddRange(p.GetList<string>("Projects").Select(FileName.Create));
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:8,代码来源:RecentOpen.cs

示例2: DisplayBindingService

		public DisplayBindingService()
		{
			bindings = AddInTree.BuildItems<DisplayBindingDescriptor>(displayBindingPath, null, true);
			urlBasedBindings = AddInTree.BuildItems<DisplayBindingDescriptor>(urlBasedDisplayBindingPath, null, false);
			displayBindingServiceProperties = SD.PropertyService.NestedProperties("DisplayBindingService");
			foreach (var binding in displayBindingServiceProperties.GetList<ExternalProcessDisplayBinding>("ExternalProcesses")) {
				if (binding != null) {
					AddExternalProcessDisplayBindingInternal(binding);
				}
			}
		}
开发者ID:kristjan84,项目名称:SharpDevelop,代码行数:11,代码来源:DisplayBindingService.cs

示例3: SetUpFixture

		public void SetUpFixture()
		{
			using (XPathQueryControl queryControl = new XPathQueryControl()) {
				Properties p = new Properties();
				p.Set("XPathQuery.LastQuery", "//w:Wix");
				expectedXPathsAfterLoad = new string[] {"//w:Fragment", "//w:Dialog"};
				p.SetList("XPathQuery.History", expectedXPathsAfterLoad);
				queryControl.SetMemento(p);

				comboBoxTextAfterLoad = queryControl.XPathComboBox.Text;
				comboBoxItemsAfterLoad = GetComboBoxItems(queryControl.XPathComboBox);

				queryControl.XPathComboBox.Text = "*";
				queryControl.XPathComboBox.Items.Clear();
				queryControl.XPathComboBox.Items.Add("xs:schema");
				expectedXPathsAfterSave = GetComboBoxItems(queryControl.XPathComboBox);

				p = queryControl.CreateMemento();
				
				xpathQueryAfterSave = p.Get("XPathQuery.LastQuery", String.Empty);
				xpathsAfterSave = p.GetList<string>("XPathQuery.History").ToArray();
			}
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:23,代码来源:XPathQueryHistoryTestFixture.cs

示例4: LoadXPathQueryHistory

 void LoadXPathQueryHistory(Properties properties)
 {
     XPathComboBox.Text = properties.Get(XPathComboBoxTextProperty, string.Empty);
     var xpaths = properties.GetList<string>(XPathComboBoxItemsProperty);
     foreach (string xpath in xpaths) {
         xpathComboBox.Items.Add(xpath);
     }
 }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:8,代码来源:XPathQueryControl.cs

示例5: LoadNamespaces

 void LoadNamespaces(Properties properties)
 {
     var namespaces = properties.GetList<string>(NamespacesProperty);
     foreach (string ns in namespaces) {
         XmlNamespace xmlNamespace = XmlNamespace.FromString(ns);
         AddNamespace(xmlNamespace.Prefix, xmlNamespace.Name);
     }
 }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:8,代码来源:XPathQueryControl.cs


注:本文中的Properties.GetList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。