9 |
public class PropertyList : PropertyList<string, object>, IPropertyList { } |
public class PropertyList : PropertyList<string, object>, IPropertyList { } |
10 |
public class PropertyList<TKey, TValue> : IPropertyList<PropertyValuePair<TKey, TValue>> |
public class PropertyList<TKey, TValue> : IPropertyList<PropertyValuePair<TKey, TValue>> |
11 |
{ |
{ |
12 |
private List<List<PropertyValuePair<TKey, TValue>>> properties; |
private List<PropertyValuePair<TKey, TValue>> properties; |
13 |
|
public PropertyList() { properties = new List<PropertyValuePair<TKey, TValue>>(); } |
14 |
public PropertyList() { properties = new List<List<PropertyValuePair<TKey, TValue>>>(); } |
public PropertyList(IEnumerable<PropertyValuePair<TKey, TValue>> collection) { properties = new List<PropertyValuePair<TKey, TValue>>(collection); } |
15 |
public PropertyList(IEnumerable<List<PropertyValuePair<TKey, TValue>>> collection) { properties = new List<List<PropertyValuePair<TKey, TValue>>>(collection); } |
public PropertyList(int capacity) { properties = new List<PropertyValuePair<TKey, TValue>>(); } |
16 |
public PropertyList(int capacity) { properties = new List<List<PropertyValuePair<TKey, TValue>>>(); } |
public PropertyValuePair<TKey, TValue> this[int index] { get { return properties[index]; } set { properties[index] = value; } } |
17 |
|
public int IndexOfProperty(PropertyValuePair<TKey, TValue> item) { return properties.IndexOf(item); } |
18 |
|
public void InsertPropertyAtIndex(int index, PropertyValuePair<TKey, TValue> item) { properties.Insert(index, item); } |
19 |
public PropertyValuePair<TKey, TValue> this[int index] |
public void RemovePropertyAt(int index) { properties.RemoveAt(index); } |
20 |
{ |
public int PropertyCount { get { return properties.Count; } } |
21 |
get |
public bool IsReadOnly { get { return (properties as IPropertyCollection<TKey>).IsReadOnly; } } |
22 |
{ |
public void AddProperty(PropertyValuePair<TKey, TValue> item) { properties.Add(item); } |
23 |
throw new NotImplementedException(); |
public void ClearProperties() { properties.Clear(); } |
24 |
} |
public bool ContainsProperty(PropertyValuePair<TKey, TValue> item) { return properties.Contains(item); } |
25 |
set |
public void CopyPropertiesTo(PropertyValuePair<TKey, TValue>[] array, int arrayIndex) { properties.CopyTo(array, arrayIndex); } |
26 |
{ |
public bool RemoveProperty(PropertyValuePair<TKey, TValue> item) { return properties.Remove(item); } |
27 |
throw new NotImplementedException(); |
public IEnumerator<PropertyValuePair<TKey, TValue>> GetEnumerator() { return properties.GetEnumerator(); } |
28 |
} |
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } |
|
} |
|
|
|
|
|
public int IndexOfProperty(PropertyValuePair<TKey, TValue> item) |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
public void InsertPropertyAtIndex(int index, PropertyValuePair<TKey, TValue> item) |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
public void RemovePropertyAt(int index) |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
public int PropertyCount |
|
|
{ |
|
|
get { throw new NotImplementedException(); } |
|
|
} |
|
|
|
|
|
public bool IsReadOnly |
|
|
{ |
|
|
get { throw new NotImplementedException(); } |
|
|
} |
|
|
|
|
|
public void AddProperty(PropertyValuePair<TKey, TValue> item) |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
public void ClearProperties() |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
public bool ContainsProperty(PropertyValuePair<TKey, TValue> item) |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
public void CopyPropertiesTo(PropertyValuePair<TKey, TValue>[] array, int arrayIndex) |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
public bool RemoveProperty(PropertyValuePair<TKey, TValue> item) |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
public IEnumerator<PropertyValuePair<TKey, TValue>> GetEnumerator() |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
|
|
|
|
IEnumerator<List<PropertyValuePair<TKey, TValue>>> IEnumerable<List<PropertyValuePair<TKey, TValue>>>.GetEnumerator() |
|
|
{ |
|
|
throw new NotImplementedException(); |
|
|
} |
|
29 |
} |
} |
30 |
} |
} |