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
- PublishLicense.cs
- StrokeNodeData.cs
- FormatterServices.cs
- TextContainerChangedEventArgs.cs
- XmlSchemaCollection.cs
- XamlInterfaces.cs
- securitycriticaldata.cs
- TokenBasedSetEnumerator.cs
- SeverityFilter.cs
- ExpressionPrefixAttribute.cs
- ItemAutomationPeer.cs
- TypeListConverter.cs
- DefaultPrintController.cs
- KnownTypesProvider.cs
- EntityReference.cs
- EventLogPermissionEntryCollection.cs
- PassportAuthenticationModule.cs
- Collection.cs
- XmlSchemaInfo.cs
- StyleXamlParser.cs
- EventItfInfo.cs
- XmlDomTextWriter.cs
- EnvironmentPermission.cs
- GridViewCancelEditEventArgs.cs
- OracleConnectionFactory.cs
- XmlSortKey.cs
- DetailsViewDeletedEventArgs.cs
- Token.cs
- IdentityNotMappedException.cs
- HttpContext.cs
- HiddenFieldPageStatePersister.cs
- ProfilePropertySettingsCollection.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- DataSetUtil.cs
- KnownTypes.cs
- Form.cs
- XPathMultyIterator.cs
- PartEditor.cs
- WindowsFormsSynchronizationContext.cs
- RegexReplacement.cs
- GeometryModel3D.cs
- AsnEncodedData.cs
- GeneralTransform3DGroup.cs
- DeviceFilterDictionary.cs
- TopClause.cs
- TabControlCancelEvent.cs
- DesignerForm.cs
- FusionWrap.cs
- Roles.cs
- ListItemConverter.cs
- XamlBuildTaskServices.cs
- WebPartVerbsEventArgs.cs
- Page.cs
- BinaryObjectInfo.cs
- X509Certificate2Collection.cs
- httpserverutility.cs
- RuleSetDialog.cs
- SoapObjectReader.cs
- StoreUtilities.cs
- MenuItemBindingCollection.cs
- HttpHandlerAction.cs
- DelegatingConfigHost.cs
- SqlConnectionPoolProviderInfo.cs
- InOutArgumentConverter.cs
- NameValuePair.cs
- BoolLiteral.cs
- CodeIdentifier.cs
- ProtocolsConfiguration.cs
- GridViewRowEventArgs.cs
- UriTemplateClientFormatter.cs
- DelayedRegex.cs
- ExtensionSimplifierMarkupObject.cs
- TypeDescriptionProvider.cs
- AppDomainUnloadedException.cs
- ChangeTracker.cs
- ListBox.cs
- BinaryObjectWriter.cs
- PostBackOptions.cs
- IndexingContentUnit.cs
- NestedContainer.cs
- FrameDimension.cs
- ObjectIDGenerator.cs
- ConfigurationConverterBase.cs
- SmtpTransport.cs
- ZipPackage.cs
- PageStatePersister.cs
- SHA1Managed.cs
- ExpressionLexer.cs
- ControlOperationInvoker.cs
- NonBatchDirectoryCompiler.cs
- XmlUtil.cs
- RightsManagementEncryptedStream.cs
- SqlBinder.cs
- HttpValueCollection.cs
- DoubleAnimation.cs
- BackStopAuthenticationModule.cs
- SecureConversationVersion.cs
- ObjectDataSourceSelectingEventArgs.cs
- ColorBlend.cs
- InfoCardTraceRecord.cs