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
- ExtenderProvidedPropertyAttribute.cs
- ConvertersCollection.cs
- METAHEADER.cs
- UrlMappingsModule.cs
- ChangeConflicts.cs
- JsonStringDataContract.cs
- DesignTimeXamlWriter.cs
- RuntimeHelpers.cs
- InputScope.cs
- SurrogateChar.cs
- Compiler.cs
- DataRowExtensions.cs
- DataGridViewCellStateChangedEventArgs.cs
- UInt64.cs
- SimpleWorkerRequest.cs
- AuthenticationSection.cs
- EdmTypeAttribute.cs
- ColorConverter.cs
- safePerfProviderHandle.cs
- util.cs
- InvokeMemberBinder.cs
- CssTextWriter.cs
- ChildDocumentBlock.cs
- ExtenderProvidedPropertyAttribute.cs
- Variable.cs
- GeneralTransform3DGroup.cs
- SchemeSettingElementCollection.cs
- NonClientArea.cs
- URLEditor.cs
- OdbcCommandBuilder.cs
- ViewLoader.cs
- ChannelDispatcherCollection.cs
- GridViewPageEventArgs.cs
- RoleBoolean.cs
- RoutedEventConverter.cs
- Point.cs
- MultipleViewPatternIdentifiers.cs
- FileCodeGroup.cs
- TemplateContainer.cs
- CurrencyManager.cs
- DispatcherObject.cs
- Maps.cs
- XmlSerializationWriter.cs
- BaseParagraph.cs
- WizardSideBarListControlItemEventArgs.cs
- WindowsRegion.cs
- SqlVersion.cs
- DataGridCellItemAutomationPeer.cs
- NumberFormatter.cs
- Root.cs
- VirtualPathProvider.cs
- AuthenticationSection.cs
- WizardStepBase.cs
- OperationParameterInfo.cs
- XmlImplementation.cs
- Label.cs
- TraceLevelStore.cs
- TransactionState.cs
- HttpPostedFile.cs
- FileRegion.cs
- URI.cs
- DataListItem.cs
- DateTimeUtil.cs
- MetadataWorkspace.cs
- SettingsProviderCollection.cs
- AsnEncodedData.cs
- ExtensibleClassFactory.cs
- VerificationException.cs
- SymbolMethod.cs
- KeyEvent.cs
- ResolveCriteriaCD1.cs
- x509store.cs
- ConvertersCollection.cs
- UncommonField.cs
- XmlUTF8TextWriter.cs
- CellConstantDomain.cs
- SplashScreen.cs
- ImportRequest.cs
- Lazy.cs
- WhitespaceSignificantCollectionAttribute.cs
- Context.cs
- TextTreePropertyUndoUnit.cs
- baseshape.cs
- BridgeDataRecord.cs
- UpDownEvent.cs
- ToolStripSeparator.cs
- ControlCollection.cs
- SessionStateItemCollection.cs
- HttpDictionary.cs
- BindingValueChangedEventArgs.cs
- EntityProviderFactory.cs
- FunctionQuery.cs
- WeakKeyDictionary.cs
- EntityDataSourceSelectedEventArgs.cs
- XmlSerializer.cs
- DbDeleteCommandTree.cs
- CachingHintValidation.cs
- EmbossBitmapEffect.cs
- ClientConfigurationHost.cs
- TypeElementCollection.cs