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
- TreeViewImageKeyConverter.cs
- RewritingPass.cs
- ToolStripManager.cs
- MethodResolver.cs
- XmlNamespaceMapping.cs
- SQLByte.cs
- CollectionBuilder.cs
- WindowHideOrCloseTracker.cs
- AliasGenerator.cs
- Expression.cs
- MouseGestureValueSerializer.cs
- MessageBox.cs
- XmlSchemaAttributeGroup.cs
- MainMenu.cs
- DataListCommandEventArgs.cs
- EnumerableRowCollection.cs
- Win32Exception.cs
- SmiSettersStream.cs
- JapaneseCalendar.cs
- FixedSOMImage.cs
- ActionMessageFilterTable.cs
- StylusCaptureWithinProperty.cs
- XmlValidatingReader.cs
- PtsHelper.cs
- GenericTypeParameterBuilder.cs
- ExtendedPropertyCollection.cs
- StoreAnnotationsMap.cs
- DummyDataSource.cs
- DesignerVerbCollection.cs
- DataGridViewCellValidatingEventArgs.cs
- JournalNavigationScope.cs
- SafeFileMappingHandle.cs
- ScrollChrome.cs
- SchemaInfo.cs
- translator.cs
- XmlQueryContext.cs
- RadioButton.cs
- WSTrustFeb2005.cs
- PolicyStatement.cs
- ContainerParaClient.cs
- UrlMappingCollection.cs
- ProxyWebPartManager.cs
- XmlSchemaValidator.cs
- IndentTextWriter.cs
- PointHitTestResult.cs
- DictionaryBase.cs
- QuaternionValueSerializer.cs
- ComponentTray.cs
- ScrollChrome.cs
- RepeaterDesigner.cs
- ClientTargetCollection.cs
- JsonDeserializer.cs
- VisualTarget.cs
- ExpressionVisitor.cs
- VectorValueSerializer.cs
- JournalEntryStack.cs
- TabletDeviceInfo.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- AppModelKnownContentFactory.cs
- MetadataUtilsSmi.cs
- AnimationStorage.cs
- ColorAnimationBase.cs
- BindingsCollection.cs
- IsolationInterop.cs
- MatrixAnimationUsingPath.cs
- OleDbSchemaGuid.cs
- SelectorItemAutomationPeer.cs
- WsdlWriter.cs
- login.cs
- TrackingProfileManager.cs
- CornerRadiusConverter.cs
- ValueConversionAttribute.cs
- OleDbSchemaGuid.cs
- BaseAsyncResult.cs
- ProfileGroupSettings.cs
- EndpointIdentity.cs
- StartUpEventArgs.cs
- FlowDocumentFormatter.cs
- TrustManager.cs
- QueryCacheEntry.cs
- FillRuleValidation.cs
- RSACryptoServiceProvider.cs
- SymbolType.cs
- MenuItemBindingCollection.cs
- SemaphoreSecurity.cs
- EncryptedData.cs
- ServiceReference.cs
- CheckedListBox.cs
- cryptoapiTransform.cs
- ImplicitInputBrush.cs
- LongValidatorAttribute.cs
- Crc32Helper.cs
- DeploymentExceptionMapper.cs
- EmptyQuery.cs
- InvalidChannelBindingException.cs
- RolePrincipal.cs
- Config.cs
- DateTimeFormatInfoScanner.cs
- CollectionEditorDialog.cs
- Constraint.cs