Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / DataRelationPropertyDescriptor.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlArrayItemAttributes.cs
- Splitter.cs
- TransformedBitmap.cs
- XmlSchemaComplexContentExtension.cs
- ContainerParaClient.cs
- smtppermission.cs
- ButtonField.cs
- DocumentViewerBase.cs
- XPathDocumentIterator.cs
- InfoCardPolicy.cs
- BufferModeSettings.cs
- Geometry3D.cs
- StatusBar.cs
- InstancePersistenceContext.cs
- SoapCodeExporter.cs
- XamlReaderHelper.cs
- BamlRecordWriter.cs
- RewritingValidator.cs
- ConfigUtil.cs
- webeventbuffer.cs
- _LazyAsyncResult.cs
- RawStylusInputCustomData.cs
- IdnElement.cs
- ReferencedCollectionType.cs
- DoubleLink.cs
- TypeSystemProvider.cs
- DrawingContext.cs
- BamlLocalizabilityResolver.cs
- FixUp.cs
- fixedPageContentExtractor.cs
- FloaterBaseParagraph.cs
- DeclarationUpdate.cs
- ReachDocumentSequenceSerializer.cs
- Pen.cs
- DispatcherOperation.cs
- XmlUrlResolver.cs
- DataGridViewRowCollection.cs
- RegexRunner.cs
- UnmanagedBitmapWrapper.cs
- ArithmeticException.cs
- assemblycache.cs
- ObjectDataSourceDisposingEventArgs.cs
- BufferedReadStream.cs
- SharedPersonalizationStateInfo.cs
- RubberbandSelector.cs
- IgnoreSection.cs
- FtpWebResponse.cs
- EventSetter.cs
- oledbmetadatacollectionnames.cs
- PasswordDeriveBytes.cs
- sqlser.cs
- BaseComponentEditor.cs
- HashHelper.cs
- srgsitem.cs
- Int32CollectionConverter.cs
- AppDomainProtocolHandler.cs
- CreateParams.cs
- ImportDesigner.xaml.cs
- Matrix.cs
- CachingHintValidation.cs
- InstanceHandle.cs
- InputScopeAttribute.cs
- EditorServiceContext.cs
- SafeLocalMemHandle.cs
- Literal.cs
- RtfFormatStack.cs
- HttpCookie.cs
- Descriptor.cs
- DynamicQueryableWrapper.cs
- ButtonPopupAdapter.cs
- SplitContainer.cs
- UInt64Storage.cs
- X509PeerCertificateAuthentication.cs
- FieldToken.cs
- ObjectDataSourceView.cs
- WebPartConnectionsConfigureVerb.cs
- HwndHostAutomationPeer.cs
- DataGridViewAdvancedBorderStyle.cs
- DispatcherExceptionFilterEventArgs.cs
- MetadataHelper.cs
- DataSourceHelper.cs
- ColorPalette.cs
- DataGridViewDesigner.cs
- EncoderParameters.cs
- Constraint.cs
- ViewCellRelation.cs
- StickyNoteContentControl.cs
- LoginName.cs
- WaitHandleCannotBeOpenedException.cs
- CoreChannel.cs
- XamlWriter.cs
- ApplicationId.cs
- Config.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- PageAdapter.cs
- CorrelationValidator.cs
- FixedPage.cs
- CodeDefaultValueExpression.cs
- ErrorHandlerModule.cs
- RowParagraph.cs