38 |
public bool RemoveProperty(T item) { return items.Remove(item); } |
public bool RemoveProperty(T item) { return items.Remove(item); } |
39 |
public IEnumerator<T> GetEnumerator() { return items.GetEnumerator(); } |
public IEnumerator<T> GetEnumerator() { return items.GetEnumerator(); } |
40 |
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return items.GetEnumerator(); } |
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return items.GetEnumerator(); } |
41 |
|
|
42 |
|
public override string ToString() |
43 |
|
{ |
44 |
|
return string.Format("Property Count: {0}", PropertyCount); |
45 |
|
} |
46 |
} |
} |
47 |
public class PropertyDictionary : PropertyDictionary<string, object>, IPropertyDictionary |
public class PropertyDictionary : PropertyDictionary<string, object>, IPropertyDictionary |
48 |
{ |
{ |
63 |
public int next; |
public int next; |
64 |
public TKey name; |
public TKey name; |
65 |
public TValue value; |
public TValue value; |
66 |
|
public override string ToString() |
67 |
|
{ |
68 |
|
return new PropertyValuePair<TKey, TValue>(name, value).ToString(); |
69 |
|
} |
70 |
} |
} |
71 |
private Entry[] entries |
private Entry[] entries |
72 |
{ |
{ |
162 |
IEnumerator<IPropertyValuePair<TKey, TValue>> IEnumerable<IPropertyValuePair<TKey, TValue>>.GetEnumerator() { return new PropertyDictionaryEnumerator(this, 2); } |
IEnumerator<IPropertyValuePair<TKey, TValue>> IEnumerable<IPropertyValuePair<TKey, TValue>>.GetEnumerator() { return new PropertyDictionaryEnumerator(this, 2); } |
163 |
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return properties.GetEnumerator(); } |
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return properties.GetEnumerator(); } |
164 |
|
|
165 |
|
public override string ToString() |
166 |
|
{ |
167 |
|
return string.Format("Property Count: {0}", PropertyCount); |
168 |
|
} |
169 |
#region enumerator support |
#region enumerator support |
170 |
public class PropertyDictionaryEnumerator : IEnumerator<IPropertyValuePair<TKey, TValue>>, IDisposable |
public class PropertyDictionaryEnumerator : IEnumerator<IPropertyValuePair<TKey, TValue>>, IDisposable |
171 |
{ |
{ |