Code:
/ FX-1434 / FX-1434 / 1.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
- Asn1IntegerConverter.cs
- StorageMappingFragment.cs
- IOThreadScheduler.cs
- Themes.cs
- DataGridViewRowsAddedEventArgs.cs
- InternalConfigSettingsFactory.cs
- SafeRsaProviderHandle.cs
- ElapsedEventArgs.cs
- InputBinding.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- KeyEvent.cs
- ToolStripDropDownDesigner.cs
- CompensationHandlingFilter.cs
- CustomAttributeBuilder.cs
- SerializationSectionGroup.cs
- Decoder.cs
- ResourceAssociationSetEnd.cs
- StaticExtension.cs
- FontInfo.cs
- ProxyHelper.cs
- DbFunctionCommandTree.cs
- shaperfactory.cs
- AsyncCompletedEventArgs.cs
- Stopwatch.cs
- ValidatingReaderNodeData.cs
- wgx_render.cs
- ExtentJoinTreeNode.cs
- TypeLoadException.cs
- ContentType.cs
- JsonStringDataContract.cs
- WindowsGraphicsCacheManager.cs
- ToolStrip.cs
- RoutedPropertyChangedEventArgs.cs
- UniqueID.cs
- InputScopeConverter.cs
- UnknownBitmapEncoder.cs
- ProxyGenerator.cs
- HtmlInputSubmit.cs
- VerticalAlignConverter.cs
- HttpRuntimeSection.cs
- ImageMapEventArgs.cs
- ToggleButtonAutomationPeer.cs
- CriticalHandle.cs
- PropertyEmitterBase.cs
- NonSerializedAttribute.cs
- InputReport.cs
- URLMembershipCondition.cs
- CodeAttributeDeclaration.cs
- ScrollViewerAutomationPeer.cs
- TextEditorThreadLocalStore.cs
- ADMembershipProvider.cs
- InvalidCastException.cs
- PartialTrustVisibleAssembliesSection.cs
- RenderContext.cs
- ElementUtil.cs
- AlignmentXValidation.cs
- ToolStripItem.cs
- ByteConverter.cs
- ThicknessAnimation.cs
- DataSourceHelper.cs
- CodeObject.cs
- UserControl.cs
- cache.cs
- PkcsMisc.cs
- ErrorRuntimeConfig.cs
- TableItemStyle.cs
- WebConfigurationFileMap.cs
- Control.cs
- GenericsInstances.cs
- FormParameter.cs
- Funcletizer.cs
- HttpListener.cs
- PlanCompilerUtil.cs
- IItemContainerGenerator.cs
- WorkflowWebHostingModule.cs
- LinkLabel.cs
- MatrixAnimationUsingKeyFrames.cs
- HeaderCollection.cs
- ServiceModelConfigurationSectionCollection.cs
- WindowsListView.cs
- PropertyStore.cs
- FrugalList.cs
- ProfileSettingsCollection.cs
- HandleRef.cs
- TerminatorSinks.cs
- CultureMapper.cs
- ToolboxItemCollection.cs
- CustomAttributeBuilder.cs
- cryptoapiTransform.cs
- LabelAutomationPeer.cs
- nulltextcontainer.cs
- SqlNodeTypeOperators.cs
- RenamedEventArgs.cs
- ContentFileHelper.cs
- Pair.cs
- Substitution.cs
- ExtendedTransformFactory.cs
- Int32KeyFrameCollection.cs
- DragEventArgs.cs
- CountdownEvent.cs