Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / DataRelationPropertyDescriptor.cs / 1305376 / DataRelationPropertyDescriptor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System.ComponentModel; ////// internal sealed class DataRelationPropertyDescriptor : PropertyDescriptor { DataRelation relation; internal DataRelation Relation { get { return relation; } } internal DataRelationPropertyDescriptor(DataRelation dataRelation) : base(dataRelation.RelationName, null) { this.relation = dataRelation; } 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 DataRelationPropertyDescriptor) { DataRelationPropertyDescriptor descriptor = (DataRelationPropertyDescriptor) other; return(descriptor.Relation == Relation); } return false; } public override Int32 GetHashCode() { return Relation.GetHashCode(); } public override bool CanResetValue(object component) { return false; } public override object GetValue(object component) { DataRowView dataRowView = (DataRowView) component; return dataRowView.CreateChildView(relation); } 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.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DropDownButton.cs
- Vector3DAnimationBase.cs
- EntityViewContainer.cs
- XmlWriter.cs
- SingleSelectRootGridEntry.cs
- DrawingGroupDrawingContext.cs
- CaseInsensitiveComparer.cs
- WebPartVerbCollection.cs
- DateTime.cs
- XmlDomTextWriter.cs
- counter.cs
- TransactionManager.cs
- CircleHotSpot.cs
- StringComparer.cs
- XmlStringTable.cs
- RawUIStateInputReport.cs
- SignatureHelper.cs
- BufferedGraphicsManager.cs
- DataControlExtensions.cs
- Documentation.cs
- ListBox.cs
- XmlSerializerFactory.cs
- Variable.cs
- DiscoveryReference.cs
- XMLSchema.cs
- RecordBuilder.cs
- DateTimeOffsetAdapter.cs
- Int32CAMarshaler.cs
- XmlSchemaCollection.cs
- DataControlLinkButton.cs
- XmlChildEnumerator.cs
- InputLanguageEventArgs.cs
- PeerContact.cs
- TextRangeBase.cs
- WaitForChangedResult.cs
- PartialCachingAttribute.cs
- SqlParameterizer.cs
- NodeInfo.cs
- ListBindingHelper.cs
- RectangleConverter.cs
- ReflectionHelper.cs
- DataTemplate.cs
- ToolStripGripRenderEventArgs.cs
- HwndSourceKeyboardInputSite.cs
- UIElementParagraph.cs
- ToolStripManager.cs
- XmlBinaryReader.cs
- Imaging.cs
- FormsAuthenticationConfiguration.cs
- LogicalTreeHelper.cs
- UpdateCommand.cs
- ArraySet.cs
- RijndaelManaged.cs
- MemoryStream.cs
- OrderingInfo.cs
- DrawingDrawingContext.cs
- RichTextBox.cs
- FormatterConverter.cs
- ChangeDirector.cs
- Highlights.cs
- DispatcherObject.cs
- TransactionManager.cs
- TextTreeInsertUndoUnit.cs
- BCLDebug.cs
- OleDbErrorCollection.cs
- ComponentDispatcherThread.cs
- XmlValidatingReaderImpl.cs
- PrintPageEvent.cs
- PrinterSettings.cs
- WsdlInspector.cs
- UnicastIPAddressInformationCollection.cs
- DataMisalignedException.cs
- CornerRadiusConverter.cs
- UnsafePeerToPeerMethods.cs
- XPathChildIterator.cs
- DataSourceCacheDurationConverter.cs
- HashFinalRequest.cs
- Queue.cs
- UnsafeNativeMethods.cs
- NativeBuffer.cs
- ScriptHandlerFactory.cs
- Point3DAnimation.cs
- XPathParser.cs
- StringValidator.cs
- CodeEntryPointMethod.cs
- DbModificationCommandTree.cs
- _SingleItemRequestCache.cs
- RunClient.cs
- EntityDataSourceDesigner.cs
- OleStrCAMarshaler.cs
- WsdlBuildProvider.cs
- ExceptionWrapper.cs
- URLAttribute.cs
- SlipBehavior.cs
- ToolStripOverflowButton.cs
- RowUpdatedEventArgs.cs
- ColumnWidthChangingEvent.cs
- SafeRightsManagementEnvironmentHandle.cs
- Header.cs
- Registry.cs