Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / MetadataPropertyvalue.cs / 1599186 / MetadataPropertyvalue.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; namespace System.Data.Metadata.Edm { ////// Class representing a metadata property on an item. Supports /// redirection from MetadataProperty instance to item property value. /// internal sealed class MetadataPropertyValue { internal MetadataPropertyValue(PropertyInfo propertyInfo, MetadataItem item) { Debug.Assert(null != propertyInfo); Debug.Assert(null != item); _propertyInfo = propertyInfo; _item = item; } private PropertyInfo _propertyInfo; private MetadataItem _item; [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] internal object GetValue() { return _propertyInfo.GetValue(_item, new object[] { }); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; namespace System.Data.Metadata.Edm { ////// Class representing a metadata property on an item. Supports /// redirection from MetadataProperty instance to item property value. /// internal sealed class MetadataPropertyValue { internal MetadataPropertyValue(PropertyInfo propertyInfo, MetadataItem item) { Debug.Assert(null != propertyInfo); Debug.Assert(null != item); _propertyInfo = propertyInfo; _item = item; } private PropertyInfo _propertyInfo; private MetadataItem _item; [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] internal object GetValue() { return _propertyInfo.GetValue(_item, new object[] { }); } } } // 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
- SmiXetterAccessMap.cs
- EndPoint.cs
- MatrixValueSerializer.cs
- HttpCookiesSection.cs
- DriveInfo.cs
- ALinqExpressionVisitor.cs
- ReadOnlyAttribute.cs
- RootAction.cs
- ThreadNeutralSemaphore.cs
- SectionUpdates.cs
- ListItemCollection.cs
- ServiceManager.cs
- SHA512Cng.cs
- MimeMapping.cs
- NavigationProperty.cs
- LoginView.cs
- VariantWrapper.cs
- URLIdentityPermission.cs
- PlatformCulture.cs
- Utils.cs
- NameValueSectionHandler.cs
- SHA256Managed.cs
- ButtonChrome.cs
- TextLineBreak.cs
- StrongName.cs
- WpfKnownType.cs
- TableLayoutSettingsTypeConverter.cs
- RelationshipEndMember.cs
- DataSpaceManager.cs
- QEncodedStream.cs
- StandardCommands.cs
- DeviceContext.cs
- ProcessModule.cs
- ellipse.cs
- MatrixAnimationUsingPath.cs
- Latin1Encoding.cs
- EditorBrowsableAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- ControlIdConverter.cs
- ApplicationInfo.cs
- ContentPlaceHolder.cs
- InternalDuplexChannelListener.cs
- Trigger.cs
- SHA384Managed.cs
- ItemAutomationPeer.cs
- GetCryptoTransformRequest.cs
- Ops.cs
- ThumbButtonInfo.cs
- DbConnectionPoolGroup.cs
- CompoundFileReference.cs
- ColumnBinding.cs
- DiagnosticTrace.cs
- PeerNameRegistration.cs
- sqlnorm.cs
- ToolStripPanelRow.cs
- ScriptControlManager.cs
- SqlDataSourceTableQuery.cs
- TemplateInstanceAttribute.cs
- GridViewColumn.cs
- SequenceFullException.cs
- AuthenticationManager.cs
- LoginCancelEventArgs.cs
- CellCreator.cs
- DataGridViewRowPostPaintEventArgs.cs
- InsufficientMemoryException.cs
- HtmlInputButton.cs
- PrtTicket_Public_Simple.cs
- ImageMap.cs
- BufferedResponseStream.cs
- MappingException.cs
- FixedDSBuilder.cs
- DuplexChannel.cs
- AppDomainFactory.cs
- ChannelServices.cs
- DateTimeFormatInfoScanner.cs
- ValidatorUtils.cs
- XmlDownloadManager.cs
- ThemeableAttribute.cs
- Ipv6Element.cs
- AssemblyNameProxy.cs
- externdll.cs
- smtpconnection.cs
- XmlDictionary.cs
- PeerEndPoint.cs
- PartialTrustHelpers.cs
- TabControlAutomationPeer.cs
- filewebresponse.cs
- ToolStripPanelRenderEventArgs.cs
- ConfigXmlReader.cs
- MessageVersion.cs
- XmlSerializationWriter.cs
- DynamicActivityTypeDescriptor.cs
- ProcessHostServerConfig.cs
- StringStorage.cs
- PersonalizationStateInfo.cs
- RequestCache.cs
- MachineKeyConverter.cs
- SendActivity.cs
- PropertyTabChangedEvent.cs
- ComboBox.cs