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
- DocumentCollection.cs
- WebRequestModuleElementCollection.cs
- _CommandStream.cs
- PageClientProxyGenerator.cs
- MemberMemberBinding.cs
- HttpApplicationFactory.cs
- _CookieModule.cs
- SecurityPermission.cs
- CachedFontFamily.cs
- PerformanceCounterManager.cs
- PreProcessInputEventArgs.cs
- ResourcePermissionBase.cs
- TableLayoutStyleCollection.cs
- CodeNamespaceCollection.cs
- RSAOAEPKeyExchangeFormatter.cs
- RuleSettings.cs
- MasterPageCodeDomTreeGenerator.cs
- XPathAncestorIterator.cs
- handlecollector.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- InputReferenceExpression.cs
- IItemProperties.cs
- LazyTextWriterCreator.cs
- VerbConverter.cs
- Crypto.cs
- ToolStripPanelRow.cs
- ExpandCollapsePattern.cs
- Pkcs7Signer.cs
- mediaeventshelper.cs
- TimeSpan.cs
- AsymmetricKeyExchangeDeformatter.cs
- WebPartConnectionsCancelVerb.cs
- IsolatedStorageException.cs
- DateTimeValueSerializerContext.cs
- ConcurrentDictionary.cs
- Win32.cs
- CalendarModeChangedEventArgs.cs
- DiscoveryVersionConverter.cs
- SqlTrackingWorkflowInstance.cs
- GridViewHeaderRowPresenter.cs
- _ConnectionGroup.cs
- ProviderConnectionPointCollection.cs
- SiteMapHierarchicalDataSourceView.cs
- VectorCollectionValueSerializer.cs
- RelationshipEntry.cs
- FactoryGenerator.cs
- WebConfigurationManager.cs
- Schema.cs
- DoubleCollectionValueSerializer.cs
- DataGridViewAdvancedBorderStyle.cs
- StylusPoint.cs
- MailMessageEventArgs.cs
- ParentUndoUnit.cs
- ServiceObjectContainer.cs
- GenerateHelper.cs
- RoutedEventArgs.cs
- Expression.DebuggerProxy.cs
- InputLanguageProfileNotifySink.cs
- InternalDispatchObject.cs
- RefreshPropertiesAttribute.cs
- SystemPens.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- RepeatButtonAutomationPeer.cs
- RemoteArgument.cs
- FrameworkEventSource.cs
- AppDomainProtocolHandler.cs
- PointValueSerializer.cs
- QilValidationVisitor.cs
- DoubleCollectionConverter.cs
- StorageAssociationTypeMapping.cs
- _ProxyRegBlob.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- Shape.cs
- Main.cs
- KerberosReceiverSecurityToken.cs
- DirectoryObjectSecurity.cs
- SocketElement.cs
- SQLDouble.cs
- Matrix.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ThreadPool.cs
- SemanticBasicElement.cs
- ContextItemManager.cs
- Vector3DAnimationBase.cs
- TypeSystemHelpers.cs
- ListItemCollection.cs
- HttpGetProtocolReflector.cs
- Timeline.cs
- XmlSchemaInferenceException.cs
- StringComparer.cs
- Avt.cs
- MtomMessageEncodingElement.cs
- TextDpi.cs
- WebUtil.cs
- ProfilePropertyNameValidator.cs
- ModulesEntry.cs
- ISessionStateStore.cs
- ScrollEvent.cs
- ToolboxSnapDragDropEventArgs.cs
- SystemIcons.cs