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
- SessionSwitchEventArgs.cs
- MsmqIntegrationChannelListener.cs
- processwaithandle.cs
- PolicyLevel.cs
- SessionStateUtil.cs
- ObjectAnimationUsingKeyFrames.cs
- MessagePartSpecification.cs
- TextBox.cs
- WmlSelectionListAdapter.cs
- GlobalItem.cs
- XmlDataImplementation.cs
- RoleService.cs
- EventSetter.cs
- Serializer.cs
- NonBatchDirectoryCompiler.cs
- MenuItemCollectionEditor.cs
- Util.cs
- ThreadStateException.cs
- SpellerHighlightLayer.cs
- DefaultValueMapping.cs
- MembershipValidatePasswordEventArgs.cs
- DataTableTypeConverter.cs
- XmlSchemaCollection.cs
- StorageConditionPropertyMapping.cs
- RawStylusSystemGestureInputReport.cs
- TrackingProfileCache.cs
- DataGridViewRowsRemovedEventArgs.cs
- ManagementExtension.cs
- X509CertificateEndpointIdentity.cs
- Number.cs
- HtmlTableCell.cs
- DataGridViewTopLeftHeaderCell.cs
- JsonFormatWriterGenerator.cs
- SapiInterop.cs
- DefinitionBase.cs
- HtmlTitle.cs
- Size3DConverter.cs
- SocketAddress.cs
- WindowsScrollBar.cs
- TrustManagerPromptUI.cs
- AutoScrollHelper.cs
- CreateUserErrorEventArgs.cs
- LicenseContext.cs
- XamlBrushSerializer.cs
- ServiceMetadataBehavior.cs
- PagedDataSource.cs
- HScrollBar.cs
- WindowsScroll.cs
- DesignerCapabilities.cs
- EmbeddedMailObject.cs
- RuleSetReference.cs
- DbDataReader.cs
- COM2AboutBoxPropertyDescriptor.cs
- Viewport3DAutomationPeer.cs
- EnvironmentPermission.cs
- CssClassPropertyAttribute.cs
- ToolStripDesignerUtils.cs
- GeometryModel3D.cs
- DictionaryManager.cs
- DuplicateWaitObjectException.cs
- FilePrompt.cs
- TransactionChannelFactory.cs
- ClientCultureInfo.cs
- CursorInteropHelper.cs
- SHA256Managed.cs
- MatchAttribute.cs
- RouteParametersHelper.cs
- HttpPostProtocolReflector.cs
- MailDefinition.cs
- TextEditorCopyPaste.cs
- AbandonedMutexException.cs
- Message.cs
- Table.cs
- ConnectionPoint.cs
- documentsequencetextcontainer.cs
- XpsResourceDictionary.cs
- IISMapPath.cs
- OleDbCommandBuilder.cs
- AuthorizationRuleCollection.cs
- FixedElement.cs
- NativeMethods.cs
- CodeChecksumPragma.cs
- DataGridViewCellEventArgs.cs
- TextTreeObjectNode.cs
- SmiEventSink.cs
- StyleModeStack.cs
- UriTemplateVariableQueryValue.cs
- AliasedSlot.cs
- XXXOnTypeBuilderInstantiation.cs
- GradientSpreadMethodValidation.cs
- EasingKeyFrames.cs
- SimpleBitVector32.cs
- TextStore.cs
- PropertyGridView.cs
- CheckBoxStandardAdapter.cs
- WindowsTitleBar.cs
- BinaryFormatter.cs
- DoubleAnimationClockResource.cs
- XmlAttributeOverrides.cs
- MatrixIndependentAnimationStorage.cs