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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StructuralType.cs
- DataServiceClientException.cs
- Perspective.cs
- BinaryNegotiation.cs
- StackSpiller.Temps.cs
- CreateUserWizardStep.cs
- HasCopySemanticsAttribute.cs
- Color.cs
- BinaryEditor.cs
- Set.cs
- TTSEngineProxy.cs
- CodeBinaryOperatorExpression.cs
- DefaultTraceListener.cs
- FixedSOMSemanticBox.cs
- Drawing.cs
- OutputCacheSettings.cs
- ScriptReferenceEventArgs.cs
- recordstatescratchpad.cs
- ServiceModelConfigurationSectionCollection.cs
- SelectingProviderEventArgs.cs
- OutputCacheSettings.cs
- FixedTextSelectionProcessor.cs
- PerfCounterSection.cs
- FileUpload.cs
- input.cs
- SerializationInfoEnumerator.cs
- CornerRadius.cs
- DataPagerFieldCommandEventArgs.cs
- TypefaceCollection.cs
- ReflectPropertyDescriptor.cs
- PasswordTextNavigator.cs
- UpDownBase.cs
- CheckBoxDesigner.cs
- wmiprovider.cs
- MonthChangedEventArgs.cs
- MessageQueueTransaction.cs
- TypeSemantics.cs
- WebServiceTypeData.cs
- _NetRes.cs
- ToolboxControl.cs
- ActivityStateQuery.cs
- HttpFileCollection.cs
- MetadataArtifactLoaderCompositeResource.cs
- TraceInternal.cs
- FormViewPagerRow.cs
- TextPattern.cs
- Int64KeyFrameCollection.cs
- CommandManager.cs
- Base64Decoder.cs
- OleDbConnectionInternal.cs
- Container.cs
- PageAsyncTaskManager.cs
- ConfigurationLocationCollection.cs
- ReferencedCollectionType.cs
- TrackingLocationCollection.cs
- ProcessMessagesAsyncResult.cs
- HttpCapabilitiesSectionHandler.cs
- KeySplineConverter.cs
- LazyLoadBehavior.cs
- EFTableProvider.cs
- AmbientEnvironment.cs
- PageBreakRecord.cs
- MediaElement.cs
- ComplexTypeEmitter.cs
- SqlDataReaderSmi.cs
- SqlDataSource.cs
- dataobject.cs
- HttpChannelHelper.cs
- SystemParameters.cs
- Missing.cs
- HandoffBehavior.cs
- RewritingValidator.cs
- UpdatableWrapper.cs
- ProcessHostConfigUtils.cs
- MeasureItemEvent.cs
- XmlSignatureManifest.cs
- ComplusTypeValidator.cs
- XamlToRtfParser.cs
- versioninfo.cs
- WrapPanel.cs
- PrinterUnitConvert.cs
- DetailsViewModeEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- File.cs
- CodeCatchClauseCollection.cs
- WaitingCursor.cs
- ApplyHostConfigurationBehavior.cs
- DynamicValidatorEventArgs.cs
- EntityWrapper.cs
- EllipseGeometry.cs
- ItemTypeToolStripMenuItem.cs
- ModuleConfigurationInfo.cs
- XhtmlBasicListAdapter.cs
- DataGridItemEventArgs.cs
- BaseResourcesBuildProvider.cs
- MimeMultiPart.cs
- SqlLiftWhereClauses.cs
- ObjectDataSourceView.cs
- SqlDataSourceCache.cs
- DataBinding.cs