Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / Validation / PropertyValidationContext.cs / 1305376 / PropertyValidationContext.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.Reflection; #region PropertyValidationContext public sealed class PropertyValidationContext { private string propertyName = string.Empty; private object propertyOwner = null; private object propertyInfo = null; public PropertyValidationContext(object propertyOwner, PropertyInfo propertyInfo, string propertyName) { if (propertyName == null) throw new ArgumentNullException("propertyName"); if (propertyOwner == null) throw new ArgumentNullException("propertyOwner"); this.propertyOwner = propertyOwner; this.propertyName = propertyName; this.propertyInfo = propertyInfo; } public PropertyValidationContext(object propertyOwner, DependencyProperty dependencyProperty) { if (propertyOwner == null) throw new ArgumentNullException("propertyOwner"); this.propertyOwner = propertyOwner; this.propertyInfo = dependencyProperty; } public string PropertyName { get { if (this.propertyInfo is DependencyProperty) return ((DependencyProperty)this.propertyInfo).Name; else return this.propertyName; } } public object PropertyOwner { get { return this.propertyOwner; } } public object Property { get { return this.propertyInfo; } } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SearchForVirtualItemEventArgs.cs
- SqlConnectionString.cs
- DetailsViewInsertedEventArgs.cs
- StateChangeEvent.cs
- _SslStream.cs
- ReflectPropertyDescriptor.cs
- ReferencedAssembly.cs
- LicenseContext.cs
- SeparatorAutomationPeer.cs
- EditorZone.cs
- RoleManagerSection.cs
- SqlInternalConnectionTds.cs
- InkSerializer.cs
- StringConverter.cs
- EdmItemCollection.OcAssemblyCache.cs
- ArrayConverter.cs
- InkPresenter.cs
- ToolStripDropDownItem.cs
- AsynchronousChannelMergeEnumerator.cs
- ZoneIdentityPermission.cs
- CurrencyWrapper.cs
- CustomCategoryAttribute.cs
- CompilerErrorCollection.cs
- XmlSchemaAttributeGroup.cs
- Walker.cs
- StringFreezingAttribute.cs
- BinaryCommonClasses.cs
- XsltFunctions.cs
- PageParser.cs
- EpmSyndicationContentSerializer.cs
- StateFinalizationDesigner.cs
- EngineSiteSapi.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- SettingsPropertyWrongTypeException.cs
- StateChangeEvent.cs
- Token.cs
- ElementNotAvailableException.cs
- HashStream.cs
- OdbcFactory.cs
- XmlTextEncoder.cs
- UnitySerializationHolder.cs
- FontWeights.cs
- MsmqAppDomainProtocolHandler.cs
- HostingEnvironmentException.cs
- SQLSingleStorage.cs
- ProcessModelSection.cs
- ArgIterator.cs
- FaultBookmark.cs
- UpdateManifestForBrowserApplication.cs
- WebPartRestoreVerb.cs
- SatelliteContractVersionAttribute.cs
- TcpClientChannel.cs
- _Events.cs
- PropertyKey.cs
- ParserContext.cs
- WebPartConnectionsDisconnectVerb.cs
- ByteStream.cs
- ECDiffieHellmanCngPublicKey.cs
- TypePropertyEditor.cs
- XslTransform.cs
- SafeRightsManagementHandle.cs
- KeyTimeConverter.cs
- XmlNotation.cs
- NameNode.cs
- WrappedIUnknown.cs
- SqlTrackingQuery.cs
- ThreadStateException.cs
- RowToFieldTransformer.cs
- AnnotationObservableCollection.cs
- AuthenticateEventArgs.cs
- EastAsianLunisolarCalendar.cs
- MarginsConverter.cs
- DashStyle.cs
- MsmqHostedTransportManager.cs
- BamlResourceSerializer.cs
- TableColumn.cs
- SettingsPropertyCollection.cs
- SQLConvert.cs
- LinqDataSourceUpdateEventArgs.cs
- ValidationEventArgs.cs
- XmlSerializableWriter.cs
- CompressedStack.cs
- SubstitutionResponseElement.cs
- EdmValidator.cs
- CFStream.cs
- AbsoluteQuery.cs
- VersionValidator.cs
- StartUpEventArgs.cs
- ColorBlend.cs
- ValueUtilsSmi.cs
- RootBrowserWindowAutomationPeer.cs
- ServicePoint.cs
- HashStream.cs
- ParseChildrenAsPropertiesAttribute.cs
- RelOps.cs
- ApplicationServicesHostFactory.cs
- WSMessageEncoding.cs
- ScriptControl.cs
- DtrList.cs
- TimelineGroup.cs