[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel TypeConverter.
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel TypeConverter.cs,1.3,1.4 |
Date: |
Thu, 26 Dec 2002 05:53:31 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel
In directory subversions:/tmp/cvs-serv15629/System/ComponentModel
Modified Files:
TypeConverter.cs
Log Message:
TypeConvertor.StandardValuesCollection nested class
Index: TypeConverter.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/TypeConverter.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** TypeConverter.cs 3 Dec 2002 00:18:55 -0000 1.3
--- TypeConverter.cs 26 Dec 2002 10:53:29 -0000 1.4
***************
*** 281,284 ****
--- 281,346 ----
}
+ // nested class
+ public class StandardValuesCollection : ICollection, IEnumerable
+ {
+
+ private ICollection values;
+
+ public StandardValuesCollection (ICollection values)
+ {
+ this.values = values;
+ }
+
+ public void CopyTo (Array array, int index)
+ {
+ values.CopyTo (array, index);
+ }
+
+ public IEnumerator GetEnumerator ()
+ {
+ return values.GetEnumerator ();
+ }
+
+ bool ICollection.IsSynchronized
+ {
+ get
+ {
+ return false;
+ }
+ }
+
+ object ICollection.SyncRoot
+ {
+ get
+ {
+ return null;
+ }
+ }
+
+ int ICollection.Count
+ {
+ get
+ {
+ return this.Count;
+ }
+ }
+
+ public int Count
+ {
+ get
+ {
+ return values.Count;
+ }
+ }
+
+ public object this [int index]
+ {
+ get
+ {
+ return (values as IList) [index];
+ }
+ }
+ }
+
}; // class TypeConverter
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel TypeConverter.cs,1.3,1.4,
Gopal.V <address@hidden> <=