Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / DataTablePropertyDescriptor.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZipQueryOperator.cs
- DataGridViewSelectedRowCollection.cs
- DashStyles.cs
- DoubleCollection.cs
- OperatorExpressions.cs
- BinaryFormatterSinks.cs
- WindowsRichEditRange.cs
- EntityStoreSchemaFilterEntry.cs
- WorkflowItemPresenter.cs
- MultipleViewPatternIdentifiers.cs
- Label.cs
- RegexFCD.cs
- KeyValueInternalCollection.cs
- GridViewRowCollection.cs
- odbcmetadatacollectionnames.cs
- Durable.cs
- XmlQueryStaticData.cs
- ToolStripSettings.cs
- SystemDropShadowChrome.cs
- InitializingNewItemEventArgs.cs
- SizeF.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- SpecularMaterial.cs
- ProfilePropertySettingsCollection.cs
- BuildManagerHost.cs
- PagerSettings.cs
- CollectionChangeEventArgs.cs
- SerializationSectionGroup.cs
- RawAppCommandInputReport.cs
- Pen.cs
- LockedHandleGlyph.cs
- EditorZoneAutoFormat.cs
- ColorAnimation.cs
- TextSearch.cs
- ResXBuildProvider.cs
- CustomSignedXml.cs
- ToolStripButton.cs
- DefaultValueTypeConverter.cs
- __Error.cs
- ServiceModelSecurityTokenRequirement.cs
- HttpModuleCollection.cs
- ZipIOLocalFileHeader.cs
- TrustManagerPromptUI.cs
- DecoratedNameAttribute.cs
- DbProviderFactory.cs
- CompareValidator.cs
- PathParser.cs
- HashRepartitionEnumerator.cs
- StringDictionary.cs
- ExpandableObjectConverter.cs
- Lasso.cs
- CompilerErrorCollection.cs
- DynamicMethod.cs
- FrameworkEventSource.cs
- PerformanceCountersElement.cs
- SqlBulkCopyColumnMapping.cs
- Ray3DHitTestResult.cs
- CookieProtection.cs
- RTTypeWrapper.cs
- WorkflowElementDialogWindow.xaml.cs
- DataGridSortCommandEventArgs.cs
- BuildProvider.cs
- TypedDataSourceCodeGenerator.cs
- UmAlQuraCalendar.cs
- HeaderedItemsControl.cs
- ExpressionBuilderCollection.cs
- AccessText.cs
- EntityAdapter.cs
- ObjectViewEntityCollectionData.cs
- UnsafeNativeMethods.cs
- ListBindingConverter.cs
- PeerTransportCredentialType.cs
- DebugHandleTracker.cs
- ByteAnimationBase.cs
- ClientEventManager.cs
- SoapAttributeAttribute.cs
- RIPEMD160.cs
- DefaultParameterValueAttribute.cs
- DeclarativeCatalogPart.cs
- JavaScriptObjectDeserializer.cs
- TextComposition.cs
- ApplicationFileCodeDomTreeGenerator.cs
- OletxTransactionFormatter.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataContractSerializer.cs
- DrawingContextWalker.cs
- ObservableDictionary.cs
- GeometryDrawing.cs
- TcpClientChannel.cs
- MessageSecurityTokenVersion.cs
- EntityDataSourceChangedEventArgs.cs
- Base64Stream.cs
- GradientStop.cs
- ParserStreamGeometryContext.cs
- PropertyFilter.cs
- PartManifestEntry.cs
- PopOutPanel.cs
- InkSerializer.cs
- Tuple.cs
- ToolStripPanelCell.cs