Code:
/ 4.0 / 4.0 / 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. 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
![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
- autovalidator.cs
- WeakReferenceList.cs
- NameTable.cs
- XmlElementList.cs
- WebPartEditVerb.cs
- CompilerGeneratedAttribute.cs
- PathGeometry.cs
- DataGridTextBoxColumn.cs
- x509store.cs
- StateBag.cs
- RequiredArgumentAttribute.cs
- StorageInfo.cs
- ColumnCollection.cs
- PageWrapper.cs
- WindowsAuthenticationModule.cs
- HttpHandlerActionCollection.cs
- ClientBuildManagerCallback.cs
- CryptoHelper.cs
- RegexCharClass.cs
- ToolZone.cs
- _AutoWebProxyScriptEngine.cs
- ItemDragEvent.cs
- CollectionEditor.cs
- FontStyles.cs
- WindowsStreamSecurityBindingElement.cs
- ClientSideQueueItem.cs
- AttachmentService.cs
- RSACryptoServiceProvider.cs
- Identifier.cs
- ReferenceEqualityComparer.cs
- VoiceObjectToken.cs
- QuaternionAnimationBase.cs
- WebEventCodes.cs
- TreeIterator.cs
- CharUnicodeInfo.cs
- FunctionParameter.cs
- WebMessageFormatHelper.cs
- WindowsGraphics2.cs
- XmlChildNodes.cs
- XmlNamespaceMapping.cs
- SqlDelegatedTransaction.cs
- ToolStripItem.cs
- StreamResourceInfo.cs
- CompletedAsyncResult.cs
- PartialCachingControl.cs
- ResourceManager.cs
- ActivityTypeCodeDomSerializer.cs
- DynamicRenderer.cs
- WebPartExportVerb.cs
- ECDsa.cs
- GridSplitter.cs
- DataObjectPastingEventArgs.cs
- SafeNativeMethods.cs
- ExecutionEngineException.cs
- CodeGen.cs
- OperatingSystemVersionCheck.cs
- DataGridViewColumnConverter.cs
- CompositionDesigner.cs
- DefaultPropertiesToSend.cs
- StyleSelector.cs
- EventPropertyMap.cs
- DesignerActionGlyph.cs
- DockAndAnchorLayout.cs
- GridViewEditEventArgs.cs
- PtsHelper.cs
- TextEditorContextMenu.cs
- Pair.cs
- UIElementPropertyUndoUnit.cs
- Matrix3DConverter.cs
- InternalTypeHelper.cs
- DataGridViewSelectedCellCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- UpDownBase.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ClientSideProviderDescription.cs
- ModuleConfigurationInfo.cs
- ChangeNode.cs
- AdornerDecorator.cs
- RenderingEventArgs.cs
- ResourceExpressionBuilder.cs
- QueryRewriter.cs
- ColorContextHelper.cs
- SchemaName.cs
- EncryptedPackageFilter.cs
- IxmlLineInfo.cs
- PersonalizationStateQuery.cs
- Region.cs
- PageCodeDomTreeGenerator.cs
- XmlNodeList.cs
- GridViewRowPresenterBase.cs
- FormClosingEvent.cs
- LoginDesignerUtil.cs
- HandledMouseEvent.cs
- ChunkedMemoryStream.cs
- SqlDependency.cs
- HtmlControlPersistable.cs
- XamlPoint3DCollectionSerializer.cs
- FactoryMaker.cs
- UnauthorizedAccessException.cs
- PartialToken.cs