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
- WbmpConverter.cs
- DetailsViewCommandEventArgs.cs
- IRCollection.cs
- ZipPackage.cs
- WeakReadOnlyCollection.cs
- TextSelection.cs
- Cursors.cs
- NullExtension.cs
- HtmlToClrEventProxy.cs
- WebPartMinimizeVerb.cs
- SafeNativeMethodsCLR.cs
- MailWebEventProvider.cs
- TypeLibraryHelper.cs
- ListViewItemMouseHoverEvent.cs
- CodeComment.cs
- DataBoundControlHelper.cs
- ConfigXmlComment.cs
- AutoCompleteStringCollection.cs
- InputMethod.cs
- ResolveNextArgumentWorkItem.cs
- Comparer.cs
- QilStrConcatenator.cs
- Request.cs
- HatchBrush.cs
- RSAPKCS1KeyExchangeFormatter.cs
- AnnotationHighlightLayer.cs
- StorageAssociationTypeMapping.cs
- TextCollapsingProperties.cs
- LongMinMaxAggregationOperator.cs
- EditorPartChrome.cs
- SchemaNamespaceManager.cs
- ComponentDispatcher.cs
- SelectedCellsChangedEventArgs.cs
- UserMapPath.cs
- MenuItem.cs
- NumericUpDown.cs
- EntityContainerEntitySet.cs
- ResolveDuplexCD1AsyncResult.cs
- PerformanceCounterPermissionEntryCollection.cs
- LateBoundChannelParameterCollection.cs
- InteropAutomationProvider.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Int32Animation.cs
- NavigationPropertySingletonExpression.cs
- StateMachineSubscription.cs
- SafeLocalMemHandle.cs
- StylusPointDescription.cs
- XmlSchemaCollection.cs
- MeasurementDCInfo.cs
- sqlpipe.cs
- TransformPatternIdentifiers.cs
- FormatterServicesNoSerializableCheck.cs
- httpserverutility.cs
- GetBrowserTokenRequest.cs
- ExpressionCopier.cs
- ItemCheckedEvent.cs
- RuleSettingsCollection.cs
- TemplateModeChangedEventArgs.cs
- UserPreferenceChangedEventArgs.cs
- XmlQueryOutput.cs
- AtomParser.cs
- UniqueSet.cs
- LoginDesignerUtil.cs
- XmlDomTextWriter.cs
- UserNameSecurityTokenAuthenticator.cs
- WebPartUtil.cs
- TextSegment.cs
- QueryStringConverter.cs
- APCustomTypeDescriptor.cs
- ListViewHitTestInfo.cs
- RootBrowserWindow.cs
- UIElementIsland.cs
- ResourceCollectionInfo.cs
- ObjectDataSourceFilteringEventArgs.cs
- Method.cs
- SQLConvert.cs
- CounterSet.cs
- RadioButton.cs
- WSDualHttpSecurityElement.cs
- base64Transforms.cs
- ApplicationServiceHelper.cs
- ValidationUtility.cs
- DocumentEventArgs.cs
- RenderingBiasValidation.cs
- EventDescriptorCollection.cs
- ReaderContextStackData.cs
- InlineUIContainer.cs
- LineBreakRecord.cs
- MainMenu.cs
- InternalsVisibleToAttribute.cs
- Executor.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TraceHandlerErrorFormatter.cs
- TableCellAutomationPeer.cs
- AttachedAnnotationChangedEventArgs.cs
- ColumnHeaderCollectionEditor.cs
- XamlReaderHelper.cs
- XamlTypeMapper.cs
- ChannelSinkStacks.cs
- UnsafePeerToPeerMethods.cs