10 |
|
|
11 |
namespace libxmltv.Core |
namespace libxmltv.Core |
12 |
{ |
{ |
13 |
|
[Serializable] |
14 |
public class PropertyCollection<T> : IPropertyCollection<T> |
public class PropertyCollection<T> : IPropertyCollection<T> |
15 |
{ |
{ |
16 |
private List<T> items = new List<T>(); |
private List<T> items = new List<T>(); |
44 |
return string.Format("Property Count: {0}", PropertyCount); |
return string.Format("Property Count: {0}", PropertyCount); |
45 |
} |
} |
46 |
} |
} |
47 |
|
[Serializable] |
48 |
public class PropertyDictionary : PropertyDictionary<string, object>, IPropertyDictionary |
public class PropertyDictionary : PropertyDictionary<string, object>, IPropertyDictionary |
49 |
{ |
{ |
50 |
public PropertyDictionary() : base() { } |
public PropertyDictionary() : base() { } |
55 |
public PropertyDictionary(int capacity, IEqualityComparer<string> comparer) : base(capacity, comparer) { } |
public PropertyDictionary(int capacity, IEqualityComparer<string> comparer) : base(capacity, comparer) { } |
56 |
protected PropertyDictionary(SerializationInfo info, StreamingContext context) : base(info, context) { } |
protected PropertyDictionary(SerializationInfo info, StreamingContext context) : base(info, context) { } |
57 |
} |
} |
58 |
|
[Serializable] |
59 |
public class PropertyDictionary<TKey, TValue> : IPropertyDictionary<TKey, TValue> |
public class PropertyDictionary<TKey, TValue> : IPropertyDictionary<TKey, TValue> |
60 |
{ |
{ |
61 |
[StructLayout(LayoutKind.Sequential)] |
[StructLayout(LayoutKind.Sequential)] |