Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / AssociationEndMember.cs / 1 / AssociationEndMember.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace System.Data.Metadata.Edm { ////// Represents a end of a Association Type /// public sealed class AssociationEndMember : RelationshipEndMember { #region Constructors ////// Initializes a new instance of AssociationEndMember /// /// name of the association end member /// Ref type that this end refers to /// multiplicity of the end internal AssociationEndMember(string name, RefType endRefType, RelationshipMultiplicity multiplicity) : base(name, endRefType, multiplicity) { } #endregion ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.AssociationEndMember; } } private object _getRelatedEndMethod = null; ///cached dynamic method to set a CLR property value on a CLR instance internal object GetRelatedEnd { get { return _getRelatedEndMethod; } set { System.Diagnostics.Debug.Assert(null != value, "clearing GetRelatedEndMethod"); // It doesn't matter which delegate wins, but only one should be jitted Interlocked.CompareExchange(ref _getRelatedEndMethod, value, null); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace System.Data.Metadata.Edm { ////// Represents a end of a Association Type /// public sealed class AssociationEndMember : RelationshipEndMember { #region Constructors ////// Initializes a new instance of AssociationEndMember /// /// name of the association end member /// Ref type that this end refers to /// multiplicity of the end internal AssociationEndMember(string name, RefType endRefType, RelationshipMultiplicity multiplicity) : base(name, endRefType, multiplicity) { } #endregion ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.AssociationEndMember; } } private object _getRelatedEndMethod = null; ///cached dynamic method to set a CLR property value on a CLR instance internal object GetRelatedEnd { get { return _getRelatedEndMethod; } set { System.Diagnostics.Debug.Assert(null != value, "clearing GetRelatedEndMethod"); // It doesn't matter which delegate wins, but only one should be jitted Interlocked.CompareExchange(ref _getRelatedEndMethod, value, null); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EdmSchemaError.cs
- StaticFileHandler.cs
- ThaiBuddhistCalendar.cs
- CalendarAutoFormatDialog.cs
- ScriptManager.cs
- MetadataExchangeBindings.cs
- FindCriteria.cs
- EmptyImpersonationContext.cs
- TaskFactory.cs
- MsmqHostedTransportManager.cs
- FrameworkElement.cs
- FlatButtonAppearance.cs
- TextModifierScope.cs
- DBAsyncResult.cs
- NativeMethodsCLR.cs
- DataGridViewCellStyleConverter.cs
- ProfilePropertySettingsCollection.cs
- ImageMetadata.cs
- QueryResults.cs
- TraceLevelHelper.cs
- TraceProvider.cs
- login.cs
- SharedRuntimeState.cs
- SchemaTypeEmitter.cs
- DataGridViewRowsAddedEventArgs.cs
- TypedTableBase.cs
- NotifyCollectionChangedEventArgs.cs
- ProcessModelInfo.cs
- AuthenticationServiceManager.cs
- Model3DGroup.cs
- PlainXmlSerializer.cs
- DbConnectionStringBuilder.cs
- MDIClient.cs
- HttpContextServiceHost.cs
- SimpleApplicationHost.cs
- DataGridViewCellCollection.cs
- PathParser.cs
- EmptyReadOnlyDictionaryInternal.cs
- WindowsToolbarAsMenu.cs
- DataComponentNameHandler.cs
- AlternateView.cs
- EventManager.cs
- TrackingDataItemValue.cs
- Rect3D.cs
- TemplateControlBuildProvider.cs
- DupHandleConnectionReader.cs
- IntegerValidatorAttribute.cs
- HwndSubclass.cs
- Statements.cs
- WindowsRichEditRange.cs
- ContentOperations.cs
- ImageField.cs
- ToolstripProfessionalRenderer.cs
- storepermissionattribute.cs
- MatrixAnimationUsingKeyFrames.cs
- ContainerUIElement3D.cs
- OwnerDrawPropertyBag.cs
- BindValidationContext.cs
- ProfileSettingsCollection.cs
- SchemaNamespaceManager.cs
- DesignerTransaction.cs
- DoubleAnimationUsingKeyFrames.cs
- InvalidFilterCriteriaException.cs
- DigitShape.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- EntityEntry.cs
- EntityAdapter.cs
- QuerySelectOp.cs
- NavigationPropertyAccessor.cs
- ResourceIDHelper.cs
- WebPartChrome.cs
- DropShadowBitmapEffect.cs
- MenuScrollingVisibilityConverter.cs
- EmptyEnumerable.cs
- FormsIdentity.cs
- GridViewRowPresenter.cs
- ColumnResizeUndoUnit.cs
- PathStreamGeometryContext.cs
- InputReportEventArgs.cs
- FormatterServices.cs
- Ref.cs
- VariantWrapper.cs
- DataServiceRequest.cs
- DataRowCollection.cs
- CodeTypeDeclarationCollection.cs
- DefaultWorkflowLoaderService.cs
- invalidudtexception.cs
- SmiRecordBuffer.cs
- FileRecordSequenceHelper.cs
- ObjectResult.cs
- COM2IPerPropertyBrowsingHandler.cs
- PersistenceTypeAttribute.cs
- TokenBasedSet.cs
- BamlLocalizer.cs
- ADMembershipProvider.cs
- BaseConfigurationRecord.cs
- RootBuilder.cs
- NameValuePair.cs
- MethodAccessException.cs
- SqlAggregateChecker.cs