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
- EntityContainer.cs
- ToolBarButtonClickEvent.cs
- GenericUriParser.cs
- EventProxy.cs
- GenerateScriptTypeAttribute.cs
- WebBrowsableAttribute.cs
- CodePageEncoding.cs
- ReliabilityContractAttribute.cs
- EntityContainer.cs
- DeclarationUpdate.cs
- TextEditorThreadLocalStore.cs
- DigitShape.cs
- KeyFrames.cs
- FamilyTypefaceCollection.cs
- WindowsTab.cs
- UserInitiatedNavigationPermission.cs
- MetadataConversionError.cs
- PassportAuthentication.cs
- CustomErrorsSection.cs
- CurrentChangedEventManager.cs
- ThreadStateException.cs
- WindowInteractionStateTracker.cs
- ButtonBaseAdapter.cs
- WebPartMinimizeVerb.cs
- SchemaImporterExtensionsSection.cs
- DataBindingExpressionBuilder.cs
- ColorBuilder.cs
- DrawingContext.cs
- BitmapData.cs
- RightsManagementEncryptionTransform.cs
- CatalogZoneBase.cs
- FormatConvertedBitmap.cs
- followingsibling.cs
- ThumbAutomationPeer.cs
- BitmapCodecInfo.cs
- QilScopedVisitor.cs
- MetabaseSettingsIis7.cs
- ProcessDesigner.cs
- ChildrenQuery.cs
- SessionParameter.cs
- ObjectContextServiceProvider.cs
- ErrorHandler.cs
- XslTransformFileEditor.cs
- AgileSafeNativeMemoryHandle.cs
- AllMembershipCondition.cs
- StringCollection.cs
- TreeNodeClickEventArgs.cs
- DbConnectionPoolIdentity.cs
- TextTabProperties.cs
- DataServiceExpressionVisitor.cs
- PackageProperties.cs
- Label.cs
- CodeSubDirectory.cs
- ExtractedStateEntry.cs
- RowVisual.cs
- SwitchElementsCollection.cs
- UriWriter.cs
- TypeElement.cs
- Line.cs
- SmiRecordBuffer.cs
- SimplePropertyEntry.cs
- SqlRowUpdatingEvent.cs
- XslCompiledTransform.cs
- ServiceNameElementCollection.cs
- ObjectQuery_EntitySqlExtensions.cs
- SafeNativeMethods.cs
- SessionIDManager.cs
- TextTreeInsertElementUndoUnit.cs
- WebConvert.cs
- RelatedImageListAttribute.cs
- MemberAccessException.cs
- ExternalException.cs
- Trace.cs
- BufferedWebEventProvider.cs
- CrossSiteScriptingValidation.cs
- _NegoStream.cs
- DataRowComparer.cs
- MapPathBasedVirtualPathProvider.cs
- FirstMatchCodeGroup.cs
- ListChangedEventArgs.cs
- QueryStoreStatusRequest.cs
- RuleSettings.cs
- ImageButton.cs
- COM2ICategorizePropertiesHandler.cs
- WebPartCloseVerb.cs
- ChannelDispatcherCollection.cs
- WebBrowser.cs
- IntegerValidatorAttribute.cs
- JavaScriptString.cs
- OleDbInfoMessageEvent.cs
- SecurityKeyUsage.cs
- DataGridViewColumnHeaderCell.cs
- XPathDocumentBuilder.cs
- UIElement3DAutomationPeer.cs
- MetafileEditor.cs
- DataBindingList.cs
- IndependentlyAnimatedPropertyMetadata.cs
- CheckedListBox.cs
- TrackingParameters.cs
- EditCommandColumn.cs