Browse Source

Allow lists of unknown items to be retrieved from the property service.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1702 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Scott Ferrett 20 years ago
parent
commit
4d419fc395
  1. 19
      src/Main/Core/Project/Src/Services/PropertyService/Properties.cs

19
src/Main/Core/Project/Src/Services/PropertyService/Properties.cs

@ -50,6 +50,17 @@ namespace ICSharpCode.Core @@ -50,6 +50,17 @@ namespace ICSharpCode.Core
}
}
public string[] Elements
{
get
{
List<string> ret = new List<string>();
foreach (KeyValuePair<string, object> property in properties)
ret.Add(property.Key);
return ret.ToArray();
}
}
public object Get(string property)
{
if (!properties.ContainsKey(property)) {
@ -75,6 +86,14 @@ namespace ICSharpCode.Core @@ -75,6 +86,14 @@ namespace ICSharpCode.Core
return properties.ContainsKey(property);
}
public int Count
{
get
{
return properties.Count;
}
}
public bool Remove(string property)
{
return properties.Remove(property);

Loading…
Cancel
Save