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
- ParentQuery.cs
- DefaultCommandExtensionCallback.cs
- ConfigPathUtility.cs
- Message.cs
- Bitmap.cs
- ExplicitDiscriminatorMap.cs
- QilTernary.cs
- EndSelectCardRequest.cs
- MeshGeometry3D.cs
- RequestTimeoutManager.cs
- FormatSelectingMessageInspector.cs
- BitmapEffectInputConnector.cs
- ObjectListItem.cs
- ServicePrincipalNameElement.cs
- TemplateContainer.cs
- ClrProviderManifest.cs
- GeometryCombineModeValidation.cs
- PreProcessInputEventArgs.cs
- SystemIcmpV6Statistics.cs
- SourceInterpreter.cs
- MetadataReference.cs
- BackgroundFormatInfo.cs
- HttpWriter.cs
- RectAnimation.cs
- ReadOnlyDictionary.cs
- MappingException.cs
- Types.cs
- HelpOperationInvoker.cs
- EntityCommandDefinition.cs
- DeclaredTypeValidatorAttribute.cs
- IsolationInterop.cs
- InvalidPropValue.cs
- HttpRequest.cs
- Native.cs
- WorkflowControlEndpoint.cs
- EditCommandColumn.cs
- panel.cs
- CommandHelper.cs
- CrossContextChannel.cs
- ServerIdentity.cs
- DataMemberConverter.cs
- FlowLayoutPanelDesigner.cs
- CanExecuteRoutedEventArgs.cs
- OperatingSystem.cs
- BinaryUtilClasses.cs
- ImageBrush.cs
- _KerberosClient.cs
- SynchronizationHandlesCodeDomSerializer.cs
- WindowsListViewScroll.cs
- UInt16Storage.cs
- NGCSerializerAsync.cs
- IInstanceContextProvider.cs
- AdPostCacheSubstitution.cs
- LayoutDump.cs
- FormsAuthenticationUser.cs
- Overlapped.cs
- JsonReader.cs
- XPathMultyIterator.cs
- DoubleCollectionValueSerializer.cs
- DebugViewWriter.cs
- UserPreferenceChangedEventArgs.cs
- SizeAnimation.cs
- XmlNodeComparer.cs
- PropertyDescriptor.cs
- ToolStripInSituService.cs
- PTConverter.cs
- DropShadowEffect.cs
- ContainerUIElement3D.cs
- XmlSchemaSimpleTypeUnion.cs
- StringAnimationBase.cs
- ConnectionManagementElement.cs
- ServiceRouteHandler.cs
- WorkingDirectoryEditor.cs
- TextEditorContextMenu.cs
- AddingNewEventArgs.cs
- VisualStyleRenderer.cs
- regiisutil.cs
- WindowsRichEdit.cs
- OracleParameterCollection.cs
- CharacterMetricsDictionary.cs
- ErrorHandler.cs
- TaiwanLunisolarCalendar.cs
- RegisteredScript.cs
- DocumentOrderQuery.cs
- StringSorter.cs
- StringSorter.cs
- SiteMapDataSource.cs
- HtmlTable.cs
- OleAutBinder.cs
- ProtocolsConfiguration.cs
- BinaryUtilClasses.cs
- UnhandledExceptionEventArgs.cs
- TraceLog.cs
- XamlVector3DCollectionSerializer.cs
- CharKeyFrameCollection.cs
- DelegatingTypeDescriptionProvider.cs
- SchemaComplexType.cs
- ProbeDuplexAsyncResult.cs
- ClassHandlersStore.cs
- Vector.cs