Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / MessageQuerySet.cs / 1305376 / MessageQuerySet.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel { using System.Collections.Generic; using System.ComponentModel; using System.ServiceModel.Activities; using System.ServiceModel.Dispatcher; using System.Diagnostics.CodeAnalysis; using System.Runtime; using System.Runtime.Serialization; using System.Security.Permissions; [SuppressMessage(FxCop.Category.Naming, FxCop.Rule.IdentifiersShouldHaveCorrectSuffix, Justification = "Arch approved name")] [SuppressMessage(FxCop.Category.Usage, FxCop.Rule.MarkISerializableTypesWithSerializable, Justification = "TODO 87908, We can consider not deriving from Dictionary")] public class MessageQuerySet : Dictionary{ public MessageQuerySet() { } public MessageQuerySet(MessageQueryTable queryTable) { if (queryTable == null) { throw FxTrace.Exception.ArgumentNull("queryTable"); } InvertDictionary (queryTable, this); } [DefaultValue(null)] public string Name { get; set; } public MessageQueryTable GetMessageQueryTable() { MessageQueryTable result = new MessageQueryTable (); InvertDictionary (this, result); return result; } static void InvertDictionary (IDictionary source, IDictionary destination) { foreach (KeyValuePair vkpair in source) { destination.Add(vkpair.Value, vkpair.Key); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableLayout.cs
- ProtocolViolationException.cs
- Camera.cs
- ModuleBuilderData.cs
- ActivityExecutionFilter.cs
- XdrBuilder.cs
- DataGridViewRowCancelEventArgs.cs
- PrimarySelectionAdorner.cs
- XmlILIndex.cs
- PickBranch.cs
- ProfileGroupSettings.cs
- DataSourceXmlClassAttribute.cs
- MatrixValueSerializer.cs
- Literal.cs
- ImageMetadata.cs
- TrackBarRenderer.cs
- WebPartCatalogCloseVerb.cs
- SHA1CryptoServiceProvider.cs
- SendingRequestEventArgs.cs
- QueryComponents.cs
- SR.cs
- Blend.cs
- EntityCollectionChangedParams.cs
- DataObjectFieldAttribute.cs
- MetadataItemEmitter.cs
- CodeCatchClause.cs
- SqlClientWrapperSmiStreamChars.cs
- AxisAngleRotation3D.cs
- ClientBuildManagerCallback.cs
- DesignerProperties.cs
- GZipStream.cs
- ADMembershipUser.cs
- TextStore.cs
- BlockUIContainer.cs
- StdRegProviderWrapper.cs
- RoleGroupCollection.cs
- RemoteWebConfigurationHost.cs
- TransformerInfo.cs
- filewebrequest.cs
- MenuItemStyleCollectionEditor.cs
- ToolStripSplitStackLayout.cs
- Error.cs
- AutoResetEvent.cs
- PermissionSetTriple.cs
- PathData.cs
- SymbolEqualComparer.cs
- MULTI_QI.cs
- HttpChannelHelper.cs
- RegexMatch.cs
- IgnoreSection.cs
- TableAdapterManagerNameHandler.cs
- ApplicationDirectory.cs
- SimpleBitVector32.cs
- TrackBar.cs
- CustomBinding.cs
- InkCanvasFeedbackAdorner.cs
- StatusBarDrawItemEvent.cs
- HierarchicalDataSourceIDConverter.cs
- MultiAsyncResult.cs
- CheckedPointers.cs
- StylusButtonEventArgs.cs
- RIPEMD160.cs
- PathGeometry.cs
- InstancePersistenceContext.cs
- ExpressionCopier.cs
- SizeChangedEventArgs.cs
- XmlCodeExporter.cs
- WebPartTransformerCollection.cs
- OdbcException.cs
- ResourceExpression.cs
- CountdownEvent.cs
- ContextCorrelationInitializer.cs
- SuppressIldasmAttribute.cs
- FilteredAttributeCollection.cs
- DrawListViewColumnHeaderEventArgs.cs
- clipboard.cs
- SessionSwitchEventArgs.cs
- ProxyGenerator.cs
- SigningCredentials.cs
- DataServiceConfiguration.cs
- MaterialGroup.cs
- WebHttpEndpointElement.cs
- PerformanceCounterCategory.cs
- TemplateModeChangedEventArgs.cs
- XPathChildIterator.cs
- coordinatorscratchpad.cs
- webeventbuffer.cs
- DataReceivedEventArgs.cs
- RadialGradientBrush.cs
- EntityCommandDefinition.cs
- Int32Converter.cs
- SQLMoneyStorage.cs
- Track.cs
- ScriptResourceHandler.cs
- ParallelRangeManager.cs
- PrePostDescendentsWalker.cs
- nulltextnavigator.cs
- BitmapImage.cs
- RelativeSource.cs
- SpellerStatusTable.cs