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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaExporter.cs
- OleDbSchemaGuid.cs
- AutoResetEvent.cs
- InternalConfirm.cs
- GAC.cs
- GridViewEditEventArgs.cs
- XmlSchema.cs
- HtmlTitle.cs
- BaseDataList.cs
- RetrieveVirtualItemEventArgs.cs
- RuleSettings.cs
- ResourceSet.cs
- TransformerConfigurationWizardBase.cs
- DrawingContextDrawingContextWalker.cs
- BufferBuilder.cs
- ProtectedProviderSettings.cs
- SqlClientMetaDataCollectionNames.cs
- safesecurityhelperavalon.cs
- CompositeActivityTypeDescriptor.cs
- UpdatePanelControlTrigger.cs
- SqlLiftIndependentRowExpressions.cs
- QuaternionValueSerializer.cs
- RpcCryptoRequest.cs
- ItemsChangedEventArgs.cs
- SecurityManager.cs
- ProcessInfo.cs
- SqlTypesSchemaImporter.cs
- ButtonStandardAdapter.cs
- TransportDefaults.cs
- WebPartMovingEventArgs.cs
- Cursor.cs
- FormsAuthenticationCredentials.cs
- SharedStatics.cs
- Peer.cs
- NumberSubstitution.cs
- ThreadPoolTaskScheduler.cs
- Propagator.cs
- DataSourceCacheDurationConverter.cs
- TagPrefixAttribute.cs
- GenericTypeParameterBuilder.cs
- SystemWebExtensionsSectionGroup.cs
- SystemWebSectionGroup.cs
- SecurityPolicySection.cs
- HyperLink.cs
- RelatedPropertyManager.cs
- RelationshipWrapper.cs
- QuarticEase.cs
- Pair.cs
- CategoryGridEntry.cs
- XamlPoint3DCollectionSerializer.cs
- KeyBinding.cs
- CodeDirectionExpression.cs
- EventMetadata.cs
- SoapAttributeAttribute.cs
- WebPartDescriptionCollection.cs
- IndicFontClient.cs
- HashSet.cs
- RewritingSimplifier.cs
- TranslateTransform.cs
- DataGridViewAddColumnDialog.cs
- DataSourceXmlAttributeAttribute.cs
- HMACRIPEMD160.cs
- HtmlInputFile.cs
- EditCommandColumn.cs
- InfoCardTraceRecord.cs
- ExpressionBindingCollection.cs
- ThreadAttributes.cs
- StickyNoteContentControl.cs
- EdmType.cs
- BasePropertyDescriptor.cs
- ProxyManager.cs
- ArgumentNullException.cs
- Activity.cs
- FamilyTypeface.cs
- OAVariantLib.cs
- TextAction.cs
- TextRange.cs
- TokenBasedSet.cs
- CfgParser.cs
- SrgsSubset.cs
- XmlEventCache.cs
- ConnectionStringsSection.cs
- ColorConvertedBitmapExtension.cs
- PackageDigitalSignatureManager.cs
- XmlUtil.cs
- RelativeSource.cs
- HMAC.cs
- UnsafeNetInfoNativeMethods.cs
- ClaimTypeElementCollection.cs
- BasicAsyncResult.cs
- Compiler.cs
- FileUtil.cs
- _Win32.cs
- WebHostUnsafeNativeMethods.cs
- MetadataArtifactLoaderCompositeFile.cs
- RelatedImageListAttribute.cs
- HtmlString.cs
- AccessDataSourceView.cs
- StateWorkerRequest.cs
- DesignTimeParseData.cs