2016-08-03 10:59:49 +00:00
//------------------------------------------------------------------------------
// <copyright file="PropertyCollection.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
2017-08-21 15:34:15 +00:00
// <owner current="true" primary="true">Microsoft</owner>
// <owner current="true" primary="false">Microsoft</owner>
// <owner current="false" primary="false">Microsoft</owner>
2016-08-03 10:59:49 +00:00
//------------------------------------------------------------------------------
namespace System.Data {
using System ;
using System.Collections ;
using System.Runtime.Serialization ;
/// <devdoc>
/// <para>Represents a collection of properties that can be added to <see cref='System.Data.DataColumn'/>,
/// <see cref='System.Data.DataSet'/>,
/// or <see cref='System.Data.DataTable'/>.</para>
/// </devdoc>
[Serializable]
public class PropertyCollection : Hashtable {
public PropertyCollection ( ) : base ( ) {
}
protected PropertyCollection ( SerializationInfo info , StreamingContext context ) : base ( info , context ) {
}
public override object Clone ( ) {
// override Clone so that returned object is an
// instance of PropertyCollection instead of Hashtable
PropertyCollection clone = new PropertyCollection ( ) ;
foreach ( DictionaryEntry pair in this ) {
clone . Add ( pair . Key , pair . Value ) ;
}
return clone ;
}
}
//3 NOTE: This should have been named PropertyDictionary, to avoid fxcop warnings about not having strongly typed IList and ICollection implementations, but it's too late now...
}