Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataGridDesigner.cs
- DeviceFiltersSection.cs
- MaskDescriptors.cs
- XmlSchemaAppInfo.cs
- querybuilder.cs
- SafeReadContext.cs
- LogicalTreeHelper.cs
- Int64AnimationUsingKeyFrames.cs
- XmlSchemaDocumentation.cs
- IOException.cs
- StaticSiteMapProvider.cs
- SqlNamer.cs
- DeflateEmulationStream.cs
- RelationshipSet.cs
- SqlDataSourceStatusEventArgs.cs
- FixedHyperLink.cs
- OptimizedTemplateContent.cs
- DataBoundControl.cs
- DesignerAdRotatorAdapter.cs
- Rotation3DKeyFrameCollection.cs
- OutputWindow.cs
- XmlCharCheckingReader.cs
- TableStyle.cs
- CodeIndexerExpression.cs
- List.cs
- ExtensionSurface.cs
- OdbcDataReader.cs
- WebConfigurationManager.cs
- Timer.cs
- XmlBinaryReader.cs
- RuntimeHelpers.cs
- NonSerializedAttribute.cs
- ValidatorCompatibilityHelper.cs
- ListenerHandler.cs
- HtmlUtf8RawTextWriter.cs
- PerformanceCounterPermissionAttribute.cs
- InputLangChangeEvent.cs
- DataTableReaderListener.cs
- _ShellExpression.cs
- IsolatedStorageException.cs
- SizeConverter.cs
- PermissionToken.cs
- SerializationSectionGroup.cs
- TypedDataSourceCodeGenerator.cs
- _AutoWebProxyScriptWrapper.cs
- DecimalConstantAttribute.cs
- BinaryFormatter.cs
- EmptyStringExpandableObjectConverter.cs
- IsolatedStorage.cs
- SubclassTypeValidatorAttribute.cs
- SchemaAttDef.cs
- NamedObject.cs
- PerfService.cs
- CookieParameter.cs
- UriExt.cs
- XmlSchemaSimpleContent.cs
- ImageBrush.cs
- ApplicationGesture.cs
- ApplicationTrust.cs
- PersianCalendar.cs
- SharedConnectionWorkflowTransactionService.cs
- DriveNotFoundException.cs
- ActivationArguments.cs
- ClaimSet.cs
- ParameterBuilder.cs
- ToolStripDropDown.cs
- ScriptResourceAttribute.cs
- XmlWhitespace.cs
- PropertyPath.cs
- BlurEffect.cs
- TextBlockAutomationPeer.cs
- DataGridViewColumnConverter.cs
- SspiWrapper.cs
- NullableIntMinMaxAggregationOperator.cs
- PreApplicationStartMethodAttribute.cs
- IndependentlyAnimatedPropertyMetadata.cs
- InternalResources.cs
- SemaphoreSecurity.cs
- OleDbWrapper.cs
- SpellerInterop.cs
- IndicCharClassifier.cs
- FormParameter.cs
- IOException.cs
- ListViewEditEventArgs.cs
- DataGridViewCellEventArgs.cs
- RepeaterItemCollection.cs
- RegisteredExpandoAttribute.cs
- SliderAutomationPeer.cs
- MediaPlayerState.cs
- Condition.cs
- XmlSchemaComplexContentRestriction.cs
- TextAction.cs
- Matrix.cs
- Drawing.cs
- _SslStream.cs
- AddressAccessDeniedException.cs
- RubberbandSelector.cs
- ProcessMonitor.cs
- __Error.cs
- PrincipalPermission.cs