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
- XmlTypeAttribute.cs
- CellLabel.cs
- DataServiceHostFactory.cs
- EntityAdapter.cs
- ClientUrlResolverWrapper.cs
- ITreeGenerator.cs
- Thread.cs
- FrugalMap.cs
- TableParagraph.cs
- EditingCoordinator.cs
- TypeContext.cs
- SmtpReplyReaderFactory.cs
- ImageAutomationPeer.cs
- DefaultTextStoreTextComposition.cs
- AxParameterData.cs
- AdCreatedEventArgs.cs
- CalendarData.cs
- ConvertersCollection.cs
- FilteredAttributeCollection.cs
- XmlQueryType.cs
- FilterableAttribute.cs
- TextParagraphProperties.cs
- ChtmlTextWriter.cs
- SerialPinChanges.cs
- HtmlInputRadioButton.cs
- GeneralTransform.cs
- PropertyInfoSet.cs
- SendKeys.cs
- TypeDefinition.cs
- EqualityComparer.cs
- ClientTargetCollection.cs
- SafeNativeMethods.cs
- QueueProcessor.cs
- SerialPinChanges.cs
- TrustSection.cs
- RuntimeArgumentHandle.cs
- HtmlTable.cs
- FtpCachePolicyElement.cs
- DateTimeFormatInfo.cs
- PasswordRecoveryAutoFormat.cs
- BindingObserver.cs
- UnlockInstanceCommand.cs
- WebPartConnectionsCancelEventArgs.cs
- SmiTypedGetterSetter.cs
- EDesignUtil.cs
- LayoutEditorPart.cs
- CompareValidator.cs
- LinkedDataMemberFieldEditor.cs
- Attributes.cs
- MethodBuilder.cs
- NativeMethods.cs
- HotSpot.cs
- LOSFormatter.cs
- Section.cs
- MergeExecutor.cs
- Latin1Encoding.cs
- CroppedBitmap.cs
- WorkflowServiceHostFactory.cs
- CommentEmitter.cs
- BufferAllocator.cs
- NameValueFileSectionHandler.cs
- RuntimeCompatibilityAttribute.cs
- SqlBulkCopy.cs
- DispatcherSynchronizationContext.cs
- EntityConnectionStringBuilder.cs
- FontFamily.cs
- ICspAsymmetricAlgorithm.cs
- CryptoApi.cs
- SqlFunctionAttribute.cs
- TileBrush.cs
- ServiceDocumentFormatter.cs
- DependencyPropertyKey.cs
- DataTableReader.cs
- SqlInfoMessageEvent.cs
- XmlSchemaSimpleContentRestriction.cs
- Utils.cs
- MaterialGroup.cs
- FactoryMaker.cs
- Bits.cs
- DataGridItem.cs
- ExtractorMetadata.cs
- XmlFormatExtensionPrefixAttribute.cs
- Win32NamedPipes.cs
- ApplicationSecurityManager.cs
- PipelineModuleStepContainer.cs
- DispatcherHookEventArgs.cs
- ViewCellRelation.cs
- ServiceOperation.cs
- VariableQuery.cs
- HttpGetClientProtocol.cs
- DbConnectionPoolCounters.cs
- XhtmlBasicPanelAdapter.cs
- ConfigurationPropertyCollection.cs
- EventDescriptorCollection.cs
- HttpPostedFile.cs
- GroupDescription.cs
- ListViewGroupItemCollection.cs
- DrawingBrush.cs
- TraceSource.cs
- ParameterCollection.cs