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
- EnumValAlphaComparer.cs
- XmlSortKeyAccumulator.cs
- ObjectAnimationUsingKeyFrames.cs
- ResourceExpressionBuilder.cs
- ScrollData.cs
- InputEventArgs.cs
- Hashtable.cs
- InProcStateClientManager.cs
- FormatException.cs
- SafeCoTaskMem.cs
- SortDescriptionCollection.cs
- XmlSchemaAttributeGroupRef.cs
- SerialPort.cs
- TypeReference.cs
- AuthenticateEventArgs.cs
- OutOfMemoryException.cs
- CommentAction.cs
- CodeTypeMember.cs
- Contracts.cs
- SHA256Managed.cs
- SchemaEntity.cs
- KeyToListMap.cs
- PersonalizationProvider.cs
- AnnotationResourceChangedEventArgs.cs
- AnnotationAdorner.cs
- TypeExtensionSerializer.cs
- PenThread.cs
- processwaithandle.cs
- WebControlParameterProxy.cs
- CodeExporter.cs
- HtmlElementErrorEventArgs.cs
- ModelPropertyDescriptor.cs
- HtmlHistory.cs
- IsolatedStorageFilePermission.cs
- Frame.cs
- ListenerElementsCollection.cs
- ValidationErrorEventArgs.cs
- TemplatedWizardStep.cs
- ConvertTextFrag.cs
- XmlILAnnotation.cs
- UshortList2.cs
- ComAdminInterfaces.cs
- DataGridViewColumnStateChangedEventArgs.cs
- SoapBinding.cs
- TraceContext.cs
- UidPropertyAttribute.cs
- FileSystemEventArgs.cs
- ListBindingHelper.cs
- FontClient.cs
- Types.cs
- ExtentJoinTreeNode.cs
- TextEditorTyping.cs
- FontUnitConverter.cs
- CodeAccessPermission.cs
- Serializer.cs
- Native.cs
- MeshGeometry3D.cs
- Utilities.cs
- ImageCodecInfoPrivate.cs
- ControlCachePolicy.cs
- FileEnumerator.cs
- DecodeHelper.cs
- XmlSchemaAny.cs
- BackStopAuthenticationModule.cs
- DesignerActionUIStateChangeEventArgs.cs
- DataGridViewCellConverter.cs
- XmlElement.cs
- AssemblyAttributes.cs
- OleDbErrorCollection.cs
- LambdaCompiler.Address.cs
- PropertyChangedEventArgs.cs
- HttpModulesSection.cs
- SecUtil.cs
- DesignerCategoryAttribute.cs
- MarkupProperty.cs
- WebPartUtil.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- FontCacheUtil.cs
- ControlValuePropertyAttribute.cs
- BaseAddressElement.cs
- OdbcDataReader.cs
- WorkflowViewStateService.cs
- Span.cs
- ColorPalette.cs
- _SafeNetHandles.cs
- TranslateTransform3D.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- ExpressionPrinter.cs
- Grant.cs
- ApplicationInfo.cs
- ModifierKeysValueSerializer.cs
- AssemblyCollection.cs
- ProgramNode.cs
- EnumerableRowCollectionExtensions.cs
- WhitespaceRule.cs
- KnownIds.cs
- Utils.cs
- DefaultParameterValueAttribute.cs
- SqlGatherConsumedAliases.cs
- SynchronizedCollection.cs