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
- DataGridAutoFormat.cs
- baseaxisquery.cs
- DispatchOperationRuntime.cs
- ProfileProvider.cs
- XmlDsigSep2000.cs
- ClassGenerator.cs
- WeakEventManager.cs
- SessionStateSection.cs
- DataPagerFieldCommandEventArgs.cs
- DataBindingExpressionBuilder.cs
- nulltextcontainer.cs
- BridgeDataRecord.cs
- SignatureSummaryDialog.cs
- ProgressPage.cs
- MenuItem.cs
- NameValueFileSectionHandler.cs
- GroupQuery.cs
- CopyNamespacesAction.cs
- ListViewInsertEventArgs.cs
- DetailsViewModeEventArgs.cs
- QuaternionAnimation.cs
- PropertyContainer.cs
- MultipleViewProviderWrapper.cs
- SizeValueSerializer.cs
- XmlComment.cs
- ConfigUtil.cs
- COM2ColorConverter.cs
- ImageMap.cs
- SchemaNotation.cs
- ScriptManagerProxy.cs
- SemaphoreSecurity.cs
- FloaterBaseParaClient.cs
- DisplayToken.cs
- _LocalDataStoreMgr.cs
- Pkcs7Signer.cs
- PerfService.cs
- NameValueCollection.cs
- StickyNoteHelper.cs
- ObjectStateManager.cs
- DataSourceDesigner.cs
- Win32SafeHandles.cs
- VectorKeyFrameCollection.cs
- ListenUriMode.cs
- BitmapCache.cs
- EdmItemError.cs
- HandlerBase.cs
- ManipulationPivot.cs
- Task.cs
- RefreshEventArgs.cs
- ObfuscationAttribute.cs
- IPPacketInformation.cs
- CqlIdentifiers.cs
- Menu.cs
- SizeConverter.cs
- XmlNodeReader.cs
- ButtonChrome.cs
- DataGridViewColumnCollection.cs
- PreservationFileWriter.cs
- TextTreeExtractElementUndoUnit.cs
- SerializationTrace.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ResourceExpressionBuilder.cs
- ListManagerBindingsCollection.cs
- JsonUriDataContract.cs
- NextPreviousPagerField.cs
- Vector.cs
- SourceInterpreter.cs
- WriterOutput.cs
- DateTimeFormatInfo.cs
- SchemaNames.cs
- DesignerAttribute.cs
- documentsequencetextpointer.cs
- UriWriter.cs
- IIS7WorkerRequest.cs
- QueryOperatorEnumerator.cs
- ISAPIRuntime.cs
- MsmqOutputMessage.cs
- XmlSerializer.cs
- OrderByBuilder.cs
- Context.cs
- EntitySqlQueryBuilder.cs
- XpsFilter.cs
- StartUpEventArgs.cs
- EditorZone.cs
- CategoryGridEntry.cs
- PieceNameHelper.cs
- KeySplineConverter.cs
- FileDialog_Vista.cs
- ImageField.cs
- XmlNullResolver.cs
- UniqueConstraint.cs
- DbCommandTree.cs
- CookieProtection.cs
- CfgParser.cs
- WebPartCancelEventArgs.cs
- XPathNode.cs
- ComEventsMethod.cs
- XPathMessageFilterElementComparer.cs
- PropertyMetadata.cs
- PcmConverter.cs