if (value is InstanceDescriptor) {
return ((InstanceDescriptor) value).Invoke ();
}
-
+ if (value == null)
+ throw new NotSupportedException ("Cannot convert from null");
throw new NotSupportedException (this.ToString() + " cannot be created from '" +
value.GetType().ToString() + "'");
}
public PropertyDescriptorCollection GetProperties (ITypeDescriptorContext context, object value)
{
- return GetProperties (context, value, null);
+ return GetProperties (context, value, new Attribute[1] { BrowsableAttribute.Yes });
}
public virtual PropertyDescriptorCollection GetProperties (ITypeDescriptorContext context,
this.values = values;
}
+ void ICollection.CopyTo (Array array, int index) {
+ CopyTo (array, index);
+ }
+
public void CopyTo (Array array, int index)
{
values.CopyTo (array, index);
}
+ IEnumerator IEnumerable.GetEnumerator () {
+ return GetEnumerator ();
+ }
+
public IEnumerator GetEnumerator ()
{
return values.GetEnumerator ();