Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / DataTablePropertyDescriptor.cs / 1 / DataTablePropertyDescriptor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; internal sealed class DataTablePropertyDescriptor : PropertyDescriptor { DataTable table; public DataTable Table { get { return table; } } internal DataTablePropertyDescriptor(DataTable dataTable) : base(dataTable.TableName, null) { this.table = dataTable; } public override Type ComponentType { get { return typeof(DataRowView); } } public override bool IsReadOnly { get { return false; } } public override Type PropertyType { get { return typeof(IBindingList); } } public override bool Equals(object other) { if (other is DataTablePropertyDescriptor) { DataTablePropertyDescriptor descriptor = (DataTablePropertyDescriptor) other; return(descriptor.Table == Table); } return false; } public override Int32 GetHashCode() { return Table.GetHashCode(); } public override bool CanResetValue(object component) { return false; } public override object GetValue(object component) { DataViewManagerListItemTypeDescriptor dataViewManagerListItem = (DataViewManagerListItemTypeDescriptor) component; return dataViewManagerListItem.GetDataView(table); } public override void ResetValue(object component) { } public override void SetValue(object component, object value) { } public override bool ShouldSerializeValue(object component) { return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomUserNameSecurityTokenAuthenticator.cs
- XpsFixedDocumentReaderWriter.cs
- DrawListViewSubItemEventArgs.cs
- XPathNodeList.cs
- DbUpdateCommandTree.cs
- DataGridViewComboBoxColumnDesigner.cs
- ServiceThrottle.cs
- SynchronizationLockException.cs
- Adorner.cs
- Utils.cs
- LinkedResource.cs
- ScrollBar.cs
- EventOpcode.cs
- StyleCollection.cs
- NullReferenceException.cs
- CloseCollectionAsyncResult.cs
- NamedPipeTransportElement.cs
- EventMappingSettings.cs
- Keywords.cs
- DefaultEventAttribute.cs
- DataColumnChangeEvent.cs
- Matrix3DValueSerializer.cs
- panel.cs
- PersonalizationProviderHelper.cs
- _DomainName.cs
- HttpCacheVary.cs
- Boolean.cs
- BaseAppDomainProtocolHandler.cs
- dtdvalidator.cs
- Collection.cs
- itemelement.cs
- DescendentsWalkerBase.cs
- OleDbException.cs
- TimeEnumHelper.cs
- CodeIdentifier.cs
- ConfigXmlAttribute.cs
- ApplicationSettingsBase.cs
- ValueType.cs
- XamlSerializer.cs
- XmlAtomErrorReader.cs
- Internal.cs
- ExtentCqlBlock.cs
- XmlEnumAttribute.cs
- MailAddressCollection.cs
- OracleDataAdapter.cs
- DBDataPermissionAttribute.cs
- RectangleConverter.cs
- CompleteWizardStep.cs
- HeaderPanel.cs
- Quad.cs
- WebBrowserContainer.cs
- RadialGradientBrush.cs
- CommonGetThemePartSize.cs
- Authorization.cs
- ViewPort3D.cs
- HandlerBase.cs
- EditorBrowsableAttribute.cs
- CategoryGridEntry.cs
- ExpandSegment.cs
- ItemCollection.cs
- EpmAttributeNameBuilder.cs
- XmlSchemaDocumentation.cs
- ConfigurationSectionCollection.cs
- FixedStringLookup.cs
- XmlAnyElementAttributes.cs
- GeneralTransform2DTo3DTo2D.cs
- _TransmitFileOverlappedAsyncResult.cs
- WeakHashtable.cs
- XPathChildIterator.cs
- DropSource.cs
- CompositionCommandSet.cs
- CodeGeneratorOptions.cs
- DebugHandleTracker.cs
- CodeDOMProvider.cs
- AuthenticatingEventArgs.cs
- ApplicationBuildProvider.cs
- BidOverLoads.cs
- SqlServices.cs
- AttributeConverter.cs
- TypeUsage.cs
- XmlDocument.cs
- HtmlTitle.cs
- CurrentTimeZone.cs
- TypeDependencyAttribute.cs
- TemplatePropertyEntry.cs
- AssemblyInfo.cs
- GeneralTransform2DTo3DTo2D.cs
- XmlCharCheckingReader.cs
- NavigationCommands.cs
- RadioButtonList.cs
- SharedDp.cs
- DataListItemCollection.cs
- util.cs
- MarkupCompilePass2.cs
- SpecularMaterial.cs
- OledbConnectionStringbuilder.cs
- CommunicationException.cs
- RouteParameter.cs
- RewritingValidator.cs
- GroupBox.cs