Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- EpmSyndicationContentSerializer.cs
- Signature.cs
- Transform.cs
- ServiceModelSecurityTokenRequirement.cs
- RectAnimationClockResource.cs
- FormParameter.cs
- TrackingSection.cs
- WebBrowserUriTypeConverter.cs
- DataColumnMappingCollection.cs
- CustomAttribute.cs
- GetRecipientRequest.cs
- UpdateProgress.cs
- AuthenticationModulesSection.cs
- TypeDescriptionProviderAttribute.cs
- ResourceDefaultValueAttribute.cs
- XmlQueryRuntime.cs
- AssemblyNameUtility.cs
- SecurityBindingElement.cs
- RoutedEventValueSerializer.cs
- ChangeNode.cs
- CqlErrorHelper.cs
- TableCell.cs
- WhitespaceRuleLookup.cs
- CharacterHit.cs
- XmlConvert.cs
- DotAtomReader.cs
- BitmapEffectrendercontext.cs
- ArithmeticException.cs
- AudioStateChangedEventArgs.cs
- HttpApplication.cs
- DispatcherFrame.cs
- hwndwrapper.cs
- ValidationEventArgs.cs
- CodeSnippetTypeMember.cs
- sitestring.cs
- RegexMatch.cs
- XhtmlBasicImageAdapter.cs
- AlignmentYValidation.cs
- CallbackTimeoutsElement.cs
- SplitterPanel.cs
- DbDeleteCommandTree.cs
- ExpandableObjectConverter.cs
- CopyAction.cs
- IndicFontClient.cs
- RTTrackingProfile.cs
- ObjectDataSource.cs
- GACIdentityPermission.cs
- OleDbErrorCollection.cs
- Int32Converter.cs
- GridView.cs
- LinkButton.cs
- ConfigurationSettings.cs
- ComboBox.cs
- PersistenceTypeAttribute.cs
- XmlUtilWriter.cs
- ClientUtils.cs
- ControlValuePropertyAttribute.cs
- WebService.cs
- OracleDataReader.cs
- SystemNetworkInterface.cs
- UnsafeNetInfoNativeMethods.cs
- XmlElementList.cs
- AndCondition.cs
- ConfigurationSectionCollection.cs
- BreadCrumbTextConverter.cs
- ZoneButton.cs
- X509AsymmetricSecurityKey.cs
- TemplatePropertyEntry.cs
- AssemblyHash.cs
- RunWorkerCompletedEventArgs.cs
- SendMessageChannelCache.cs
- ViewLoader.cs
- DeclarativeCatalogPart.cs
- DefaultPrintController.cs
- EqualityComparer.cs
- EntityDataSourceEntityTypeFilterItem.cs
- XsltContext.cs
- DoWhile.cs
- CustomLineCap.cs
- ControlFilterExpression.cs
- ContainerParaClient.cs
- NamespaceMapping.cs
- UserUseLicenseDictionaryLoader.cs
- HandleRef.cs
- ValidatorCollection.cs
- Style.cs
- DataComponentNameHandler.cs
- DataSetMappper.cs
- DeferredSelectedIndexReference.cs
- DbConnectionPoolOptions.cs
- DataFieldConverter.cs
- autovalidator.cs
- SqlDataSourceRefreshSchemaForm.cs
- XmlObjectSerializer.cs
- SHA1.cs
- SmtpNtlmAuthenticationModule.cs
- ResolveCriteriaCD1.cs
- EdmPropertyAttribute.cs
- MultiPropertyDescriptorGridEntry.cs
- XsltConvert.cs