Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Rules / References.cs / 1305376 / References.cs
// ---------------------------------------------------------------------------- // Copyright (C) 2005 Microsoft Corporation All Rights Reserved // --------------------------------------------------------------------------- #define CODE_ANALYSIS using System.CodeDom; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Reflection; namespace System.Workflow.Activities.Rules { public class RulePathQualifier { private string name; private RulePathQualifier next; public RulePathQualifier(string name, RulePathQualifier next) { this.name = name; this.next = next; } public string Name { get { return name; } } public RulePathQualifier Next { get { return next; } } } public class RuleAnalysis { private RuleValidation validation; private bool forWrites; private Dictionarysymbols = new Dictionary (); public RuleAnalysis(RuleValidation validation, bool forWrites) { this.validation = validation; this.forWrites = forWrites; } internal RuleValidation Validation { get { return validation; } } public bool ForWrites { get { return forWrites; } } public void AddSymbol(string symbol) { symbols[symbol] = null; } [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] public ICollection GetSymbols() { List symbolList = new List (symbols.Keys.Count); foreach (KeyValuePair pair in symbols) symbolList.Add(pair.Key); return symbolList; } #region RuleAttribute Analysis internal void AnalyzeRuleAttributes(MemberInfo member, CodeExpression targetExpr, RulePathQualifier targetQualifier, CodeExpressionCollection argExprs, ParameterInfo[] parameters, List attributedExprs) { object[] attrs = member.GetCustomAttributes(typeof(RuleAttribute), true); if (attrs != null && attrs.Length > 0) { RuleAttribute[] ruleAttrs = (RuleAttribute[])attrs; for (int i = 0; i < ruleAttrs.Length; ++i) ruleAttrs[i].Analyze(this, member, targetExpr, targetQualifier, argExprs, parameters, attributedExprs); } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- // Copyright (C) 2005 Microsoft Corporation All Rights Reserved // --------------------------------------------------------------------------- #define CODE_ANALYSIS using System.CodeDom; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Reflection; namespace System.Workflow.Activities.Rules { public class RulePathQualifier { private string name; private RulePathQualifier next; public RulePathQualifier(string name, RulePathQualifier next) { this.name = name; this.next = next; } public string Name { get { return name; } } public RulePathQualifier Next { get { return next; } } } public class RuleAnalysis { private RuleValidation validation; private bool forWrites; private Dictionary symbols = new Dictionary (); public RuleAnalysis(RuleValidation validation, bool forWrites) { this.validation = validation; this.forWrites = forWrites; } internal RuleValidation Validation { get { return validation; } } public bool ForWrites { get { return forWrites; } } public void AddSymbol(string symbol) { symbols[symbol] = null; } [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] public ICollection GetSymbols() { List symbolList = new List (symbols.Keys.Count); foreach (KeyValuePair pair in symbols) symbolList.Add(pair.Key); return symbolList; } #region RuleAttribute Analysis internal void AnalyzeRuleAttributes(MemberInfo member, CodeExpression targetExpr, RulePathQualifier targetQualifier, CodeExpressionCollection argExprs, ParameterInfo[] parameters, List attributedExprs) { object[] attrs = member.GetCustomAttributes(typeof(RuleAttribute), true); if (attrs != null && attrs.Length > 0) { RuleAttribute[] ruleAttrs = (RuleAttribute[])attrs; for (int i = 0; i < ruleAttrs.Length; ++i) ruleAttrs[i].Analyze(this, member, targetExpr, targetQualifier, argExprs, parameters, attributedExprs); } } #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
- assertwrapper.cs
- SizeF.cs
- AssemblyAttributes.cs
- UnrecognizedPolicyAssertionElement.cs
- WindowPatternIdentifiers.cs
- FrameworkTextComposition.cs
- DLinqTableProvider.cs
- XmlNodeChangedEventManager.cs
- DebugHandleTracker.cs
- DrawingBrush.cs
- Visual3D.cs
- TcpChannelHelper.cs
- HierarchicalDataSourceControl.cs
- PointAnimation.cs
- DrawTreeNodeEventArgs.cs
- NetworkAddressChange.cs
- Cursors.cs
- ToolStripLabel.cs
- PKCS1MaskGenerationMethod.cs
- TextFormatterImp.cs
- CodeDOMUtility.cs
- CharConverter.cs
- EncodingConverter.cs
- SatelliteContractVersionAttribute.cs
- LinqDataSourceView.cs
- SoapIncludeAttribute.cs
- TransformGroup.cs
- BaseCollection.cs
- SessionParameter.cs
- Transactions.cs
- DateTimeOffset.cs
- CurrentChangedEventManager.cs
- DbDeleteCommandTree.cs
- SystemNetHelpers.cs
- AppSettingsReader.cs
- BoundingRectTracker.cs
- ComAdminWrapper.cs
- ViewValidator.cs
- DataSet.cs
- OutputCacheSection.cs
- AnnouncementDispatcherAsyncResult.cs
- Sentence.cs
- XmlTextReaderImpl.cs
- Wildcard.cs
- ListViewGroupConverter.cs
- IncrementalReadDecoders.cs
- LoginStatusDesigner.cs
- XmlSerializationGeneratedCode.cs
- TypeDependencyAttribute.cs
- CookielessHelper.cs
- ResourceDefaultValueAttribute.cs
- DataContractJsonSerializerOperationFormatter.cs
- XmlSignificantWhitespace.cs
- DataRelationCollection.cs
- EastAsianLunisolarCalendar.cs
- SessionEndingCancelEventArgs.cs
- Shape.cs
- DataChangedEventManager.cs
- TTSEngineProxy.cs
- BrowserDefinition.cs
- AutomationPropertyInfo.cs
- FloaterBaseParaClient.cs
- IsolatedStorageFile.cs
- xamlnodes.cs
- NegationPusher.cs
- SiblingIterators.cs
- DatatypeImplementation.cs
- XPathEmptyIterator.cs
- EventRoute.cs
- ToolboxItemSnapLineBehavior.cs
- TextEvent.cs
- SqlInternalConnection.cs
- HandoffBehavior.cs
- SubclassTypeValidatorAttribute.cs
- SchemaObjectWriter.cs
- OperatingSystemVersionCheck.cs
- NamespaceInfo.cs
- FixedFindEngine.cs
- SHA1CryptoServiceProvider.cs
- TextDecorations.cs
- OrderedDictionary.cs
- TriggerBase.cs
- BitmapEffectGeneralTransform.cs
- XPathBinder.cs
- MexBindingBindingCollectionElement.cs
- ApplicationId.cs
- BitmapEffectRenderDataResource.cs
- messageonlyhwndwrapper.cs
- ISAPIRuntime.cs
- QueryMath.cs
- RequiredFieldValidator.cs
- DocobjHost.cs
- RoamingStoreFile.cs
- ToolStripContentPanelRenderEventArgs.cs
- SelectionManager.cs
- ResourceWriter.cs
- HtmlButton.cs
- TypeListConverter.cs
- ReturnEventArgs.cs
- Vector3D.cs