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
- ThreadInterruptedException.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- XmlCustomFormatter.cs
- DefaultClaimSet.cs
- HitTestFilterBehavior.cs
- StreamingContext.cs
- DataFieldConverter.cs
- DynamicActivity.cs
- XamlBrushSerializer.cs
- SrgsDocumentParser.cs
- DesignerAttributeInfo.cs
- DisposableCollectionWrapper.cs
- TrustLevel.cs
- KerberosSecurityTokenProvider.cs
- ScriptManager.cs
- ThreadAbortException.cs
- GenerateTemporaryTargetAssembly.cs
- ObjectViewFactory.cs
- XmlILOptimizerVisitor.cs
- OperationInvokerTrace.cs
- EncoderNLS.cs
- CorruptingExceptionCommon.cs
- PropertyMetadata.cs
- ErrorWrapper.cs
- Group.cs
- XmlSchemaSimpleType.cs
- TreeNode.cs
- Grid.cs
- StylusSystemGestureEventArgs.cs
- ListViewInsertionMark.cs
- GradientStop.cs
- XmlLanguage.cs
- Stylesheet.cs
- basecomparevalidator.cs
- HandlerMappingMemo.cs
- MD5.cs
- ResXBuildProvider.cs
- WebPartDisplayModeCancelEventArgs.cs
- BasicExpandProvider.cs
- Hex.cs
- WebExceptionStatus.cs
- SignatureHelper.cs
- UnaryNode.cs
- WebPartCancelEventArgs.cs
- HtmlInputHidden.cs
- TriggerAction.cs
- ContentType.cs
- IndexerNameAttribute.cs
- ResXFileRef.cs
- TraceLog.cs
- MexHttpsBindingCollectionElement.cs
- OleDbPermission.cs
- StreamFormatter.cs
- AVElementHelper.cs
- MethodRental.cs
- Table.cs
- EncryptedHeaderXml.cs
- AdRotatorDesigner.cs
- DataSourceGroupCollection.cs
- PromptEventArgs.cs
- TimeZone.cs
- DataServiceCollectionOfT.cs
- TextEditor.cs
- ValueSerializer.cs
- HtmlTextArea.cs
- Parser.cs
- ParallelTimeline.cs
- JournalEntry.cs
- AffineTransform3D.cs
- ObjectResult.cs
- assemblycache.cs
- GenerateDerivedKeyRequest.cs
- WebSysDescriptionAttribute.cs
- basenumberconverter.cs
- ComponentEditorPage.cs
- MSAAEventDispatcher.cs
- SizeIndependentAnimationStorage.cs
- TextReturnReader.cs
- MatrixCamera.cs
- EntityDataSourceQueryBuilder.cs
- Errors.cs
- PEFileEvidenceFactory.cs
- TextSerializer.cs
- PackageRelationshipSelector.cs
- PropertySourceInfo.cs
- PaintValueEventArgs.cs
- ProcessModelSection.cs
- HtmlInputImage.cs
- ObjectItemNoOpAssemblyLoader.cs
- assertwrapper.cs
- Event.cs
- UIntPtr.cs
- SymLanguageVendor.cs
- Avt.cs
- DescendentsWalker.cs
- Floater.cs
- DataBindingList.cs
- EncodingTable.cs
- MdiWindowListItemConverter.cs
- Attributes.cs