Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / MessageBodyDescription.cs / 1 / MessageBodyDescription.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- using System; using System.ServiceModel.Channels; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization; namespace System.ServiceModel.Description { public class MessageBodyDescription { private XmlName wrapperName; private string wrapperNs; private MessagePartDescriptionCollection parts; private MessagePartDescription returnValue; public MessageBodyDescription() { parts = new MessagePartDescriptionCollection(); } internal MessageBodyDescription(MessageBodyDescription other) { this.WrapperName = other.WrapperName; this.WrapperNamespace = other.WrapperNamespace; this.parts = new MessagePartDescriptionCollection(); foreach (MessagePartDescription mpd in other.Parts) { this.Parts.Add(mpd.Clone()); } if (other.ReturnValue != null) { this.ReturnValue = other.ReturnValue.Clone(); } } internal MessageBodyDescription Clone() { return new MessageBodyDescription(this); } public MessagePartDescriptionCollection Parts { get { return parts; } } public MessagePartDescription ReturnValue { get { return returnValue; } set { returnValue = value; } } public string WrapperName { get { return wrapperName == null ? null : wrapperName.EncodedName; } set { wrapperName = new XmlName(value, true /*isEncoded*/); } } public string WrapperNamespace { get { return wrapperNs; } set { wrapperNs = value; } } } } // 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
- DesignerAttribute.cs
- DictionarySectionHandler.cs
- ThreadStartException.cs
- DataServiceProcessingPipelineEventArgs.cs
- CodeChecksumPragma.cs
- HandleValueEditor.cs
- ScrollPatternIdentifiers.cs
- DependencySource.cs
- DataTemplateKey.cs
- ExpressionDumper.cs
- SafeFileMappingHandle.cs
- MinimizableAttributeTypeConverter.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- JoinSymbol.cs
- Light.cs
- TraceUtility.cs
- TimeoutValidationAttribute.cs
- VectorAnimation.cs
- CommunicationObject.cs
- RoutedPropertyChangedEventArgs.cs
- TemplatedWizardStep.cs
- WebPartPersonalization.cs
- AssemblyCache.cs
- BitmapEffectDrawingContextState.cs
- Roles.cs
- SmtpTransport.cs
- MarkupExtensionParser.cs
- WebPartPersonalization.cs
- StreamReader.cs
- ModelPropertyImpl.cs
- WindowsBrush.cs
- ImageSourceConverter.cs
- SimpleLine.cs
- FlowLayoutSettings.cs
- WindowsIPAddress.cs
- NumberFormatter.cs
- CTreeGenerator.cs
- PanelContainerDesigner.cs
- SqlInternalConnectionSmi.cs
- IdnMapping.cs
- DataControlField.cs
- SplineKeyFrames.cs
- CallContext.cs
- WindowsScrollBarBits.cs
- ChameleonKey.cs
- ColumnHeaderConverter.cs
- QilNode.cs
- ValidationEventArgs.cs
- ConsumerConnectionPoint.cs
- ExtractorMetadata.cs
- DataColumnMappingCollection.cs
- arclist.cs
- SmiSettersStream.cs
- SharedPerformanceCounter.cs
- SemanticResultValue.cs
- FloaterBaseParaClient.cs
- ReachSerializerAsync.cs
- InfoCardBaseException.cs
- M3DUtil.cs
- TextOnlyOutput.cs
- FormatConvertedBitmap.cs
- TemplateBuilder.cs
- XmlQuerySequence.cs
- ResourceType.cs
- OracleNumber.cs
- InstanceOwnerException.cs
- TimeSpanConverter.cs
- hresults.cs
- ColumnCollection.cs
- KnownTypeDataContractResolver.cs
- CaseInsensitiveComparer.cs
- ToolStripControlHost.cs
- SHA384.cs
- OdbcCommandBuilder.cs
- TemplateComponentConnector.cs
- PersonalizationStateInfoCollection.cs
- ManagementScope.cs
- Int32Rect.cs
- QueryStringParameter.cs
- NamedPipeTransportSecurityElement.cs
- XmlILAnnotation.cs
- ContentPresenter.cs
- TableLayout.cs
- LineBreakRecord.cs
- DefaultSection.cs
- EntryIndex.cs
- FilterElement.cs
- SafeBitVector32.cs
- RelationshipManager.cs
- PtsHelper.cs
- LazyTextWriterCreator.cs
- MatrixTransform.cs
- XmlQueryContext.cs
- _SafeNetHandles.cs
- ColorPalette.cs
- AuthenticationSection.cs
- NativeCompoundFileAPIs.cs
- HttpListener.cs
- AttributeData.cs
- SafeArrayRankMismatchException.cs