Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Serialization / System / Runtime / Serialization / ContractCodeDomInfo.cs / 1305376 / ContractCodeDomInfo.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Serialization { using System; using System.Xml; using System.Xml.Schema; using System.CodeDom; using System.Collections.Generic; internal class ContractCodeDomInfo { internal bool IsProcessed; internal CodeTypeDeclaration TypeDeclaration; internal CodeTypeReference TypeReference; internal CodeNamespace CodeNamespace; internal bool ReferencedTypeExists; internal bool UsesWildcardNamespace; string clrNamespace; DictionarymemberNames; internal string ClrNamespace { get { return (ReferencedTypeExists ? null : clrNamespace); } set { if (ReferencedTypeExists) throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotSetNamespaceForReferencedType, TypeReference.BaseType))); else clrNamespace = value; } } internal Dictionary GetMemberNames() { if (ReferencedTypeExists) throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotSetMembersForReferencedType, TypeReference.BaseType))); else { if (memberNames == null) { memberNames = new Dictionary (StringComparer.OrdinalIgnoreCase); } return memberNames; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Serialization { using System; using System.Xml; using System.Xml.Schema; using System.CodeDom; using System.Collections.Generic; internal class ContractCodeDomInfo { internal bool IsProcessed; internal CodeTypeDeclaration TypeDeclaration; internal CodeTypeReference TypeReference; internal CodeNamespace CodeNamespace; internal bool ReferencedTypeExists; internal bool UsesWildcardNamespace; string clrNamespace; Dictionary memberNames; internal string ClrNamespace { get { return (ReferencedTypeExists ? null : clrNamespace); } set { if (ReferencedTypeExists) throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotSetNamespaceForReferencedType, TypeReference.BaseType))); else clrNamespace = value; } } internal Dictionary GetMemberNames() { if (ReferencedTypeExists) throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotSetMembersForReferencedType, TypeReference.BaseType))); else { if (memberNames == null) { memberNames = new Dictionary (StringComparer.OrdinalIgnoreCase); } return memberNames; } } } } // 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
- Configuration.cs
- ClientProxyGenerator.cs
- COSERVERINFO.cs
- NotEqual.cs
- CacheModeConverter.cs
- DataGridViewRowConverter.cs
- NumberEdit.cs
- BitmapEffectDrawingContent.cs
- MediaElementAutomationPeer.cs
- FileDialog.cs
- ColumnTypeConverter.cs
- DocumentPageTextView.cs
- DispatchWrapper.cs
- OrCondition.cs
- PointAnimation.cs
- IdleTimeoutMonitor.cs
- SafeLocalMemHandle.cs
- HiddenField.cs
- RegexWriter.cs
- CorrelationTokenTypeConvertor.cs
- ProviderConnectionPointCollection.cs
- GroupBoxAutomationPeer.cs
- PageStatePersister.cs
- IteratorFilter.cs
- RuntimeHelpers.cs
- DecoderNLS.cs
- BamlMapTable.cs
- DataBinding.cs
- DetailsViewPageEventArgs.cs
- XmlExceptionHelper.cs
- OrthographicCamera.cs
- KnownIds.cs
- CacheVirtualItemsEvent.cs
- LeaseManager.cs
- DateTimeOffsetStorage.cs
- ChineseLunisolarCalendar.cs
- DiscoveryDocumentReference.cs
- CompiledQueryCacheEntry.cs
- FontEmbeddingManager.cs
- _RequestCacheProtocol.cs
- ListViewEditEventArgs.cs
- IfAction.cs
- DefaultAutoFieldGenerator.cs
- VisualStateGroup.cs
- AddInAdapter.cs
- AdPostCacheSubstitution.cs
- RuleInfoComparer.cs
- PassportPrincipal.cs
- DataTableReaderListener.cs
- QueueProcessor.cs
- RemotingException.cs
- InkCanvasSelectionAdorner.cs
- ThreadPool.cs
- SelectionItemProviderWrapper.cs
- InvokeHandlers.cs
- Cursors.cs
- translator.cs
- FileAccessException.cs
- MailWebEventProvider.cs
- ComponentGlyph.cs
- StateMachineWorkflowInstance.cs
- FixedSOMPageConstructor.cs
- ServiceMetadataBehavior.cs
- HostVisual.cs
- ContainerAction.cs
- EntityContainerRelationshipSet.cs
- TreeViewItemAutomationPeer.cs
- CodePageUtils.cs
- ParallelLoopState.cs
- TTSEngineTypes.cs
- ErrorFormatter.cs
- SerializationSectionGroup.cs
- ColumnWidthChangingEvent.cs
- Ops.cs
- SplineKeyFrames.cs
- UserUseLicenseDictionaryLoader.cs
- PointAnimationUsingPath.cs
- XmlSchemaCompilationSettings.cs
- AnnotationAdorner.cs
- MergeFilterQuery.cs
- AssertFilter.cs
- RelationalExpressions.cs
- AndCondition.cs
- PrinterSettings.cs
- ObservableCollectionDefaultValueFactory.cs
- GeometryModel3D.cs
- SmtpReplyReaderFactory.cs
- MatrixAnimationBase.cs
- WindowsHyperlink.cs
- BasePropertyDescriptor.cs
- WebDisplayNameAttribute.cs
- pingexception.cs
- ScriptResourceHandler.cs
- FormViewInsertEventArgs.cs
- CmsInterop.cs
- SQLDecimalStorage.cs
- processwaithandle.cs
- TextBounds.cs
- ArrayConverter.cs
- SecureStringHasher.cs