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
- BamlReader.cs
- HtmlGenericControl.cs
- WindowVisualStateTracker.cs
- Timer.cs
- LocationUpdates.cs
- DependencyPropertyHelper.cs
- HttpDictionary.cs
- DesignerForm.cs
- WebPageTraceListener.cs
- XPathParser.cs
- InputScopeAttribute.cs
- COM2ICategorizePropertiesHandler.cs
- DockingAttribute.cs
- TextTreeInsertElementUndoUnit.cs
- Vector3DCollectionValueSerializer.cs
- FilterableAttribute.cs
- TypedTableBase.cs
- XslAst.cs
- DataControlImageButton.cs
- PropertyNames.cs
- BinaryWriter.cs
- ControlTemplate.cs
- util.cs
- RotateTransform.cs
- ExpandCollapseProviderWrapper.cs
- HttpCookieCollection.cs
- Int64.cs
- TerminateWorkflow.cs
- SqlMethods.cs
- Misc.cs
- HtmlWindowCollection.cs
- ObjectRef.cs
- ExtendLockAsyncResult.cs
- DisposableCollectionWrapper.cs
- ServiceContractListItemList.cs
- RewritingProcessor.cs
- Config.cs
- precedingsibling.cs
- ProfilePropertySettingsCollection.cs
- ToolStripOverflowButton.cs
- IfJoinedCondition.cs
- TextElementAutomationPeer.cs
- MLangCodePageEncoding.cs
- StretchValidation.cs
- StubHelpers.cs
- WebPartEventArgs.cs
- SafeBitVector32.cs
- WindowsProgressbar.cs
- Control.cs
- CachedFontFace.cs
- AttributeCallbackBuilder.cs
- externdll.cs
- LinqDataSourceUpdateEventArgs.cs
- RowParagraph.cs
- DataGridAutomationPeer.cs
- QilReplaceVisitor.cs
- Transform3DGroup.cs
- Point3DValueSerializer.cs
- FilteredDataSetHelper.cs
- TableRowCollection.cs
- ListViewUpdateEventArgs.cs
- TimeManager.cs
- ToolStripGripRenderEventArgs.cs
- ColumnMapVisitor.cs
- ApplicationId.cs
- SafeMarshalContext.cs
- Nullable.cs
- SettingsPropertyIsReadOnlyException.cs
- VectorAnimationBase.cs
- XsdValidatingReader.cs
- Byte.cs
- _ConnectionGroup.cs
- GraphicsPathIterator.cs
- ApplicationTrust.cs
- DefaultTextStore.cs
- DictationGrammar.cs
- _TimerThread.cs
- CollectionsUtil.cs
- Ipv6Element.cs
- FullTextBreakpoint.cs
- IisTraceWebEventProvider.cs
- UIElement3D.cs
- DateTimeEditor.cs
- RuleProcessor.cs
- _BasicClient.cs
- RemotingServices.cs
- PriorityQueue.cs
- GregorianCalendar.cs
- QuerySettings.cs
- StylusPlugin.cs
- CompilerTypeWithParams.cs
- BooleanExpr.cs
- ScriptingWebServicesSectionGroup.cs
- CodeTypeParameter.cs
- DataRelationCollection.cs
- DataServiceEntityAttribute.cs
- DiscardableAttribute.cs
- UIHelper.cs
- MailMessageEventArgs.cs
- GlobalizationAssembly.cs