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
- SystemFonts.cs
- TemplateBindingExpression.cs
- Module.cs
- WebHeaderCollection.cs
- OdbcParameterCollection.cs
- RegexCapture.cs
- Stream.cs
- DefaultProxySection.cs
- CacheAxisQuery.cs
- SettingsBase.cs
- SettingsPropertyValueCollection.cs
- TreeNodeSelectionProcessor.cs
- SystemFonts.cs
- SynchronizedChannelCollection.cs
- C14NUtil.cs
- XmlSchemaSimpleType.cs
- MarkupCompiler.cs
- DynamicDataResources.Designer.cs
- TdsParserStaticMethods.cs
- ComponentEditorPage.cs
- FileSystemEventArgs.cs
- ListViewItemMouseHoverEvent.cs
- StylusOverProperty.cs
- MsmqHostedTransportConfiguration.cs
- ButtonPopupAdapter.cs
- ObfuscateAssemblyAttribute.cs
- MemoryPressure.cs
- StrongNameMembershipCondition.cs
- GZipUtils.cs
- DbFunctionCommandTree.cs
- DockProviderWrapper.cs
- ToolStripContentPanel.cs
- AtomMaterializer.cs
- XMLSyntaxException.cs
- OneToOneMappingSerializer.cs
- ZipIOExtraField.cs
- BoolLiteral.cs
- DataListAutoFormat.cs
- ViewLoader.cs
- WorkflowViewService.cs
- BufferedStream.cs
- PlaceHolder.cs
- XmlWriter.cs
- MonthChangedEventArgs.cs
- ChangeNode.cs
- SqlDataSourceSelectingEventArgs.cs
- CellTreeNode.cs
- TextBoxBase.cs
- ListViewGroupCollectionEditor.cs
- ConfigPathUtility.cs
- ControlValuePropertyAttribute.cs
- TextParagraph.cs
- SchemaEntity.cs
- BindingUtils.cs
- RectAnimationBase.cs
- CachedFontFace.cs
- TriggerActionCollection.cs
- MessageEncodingBindingElement.cs
- ImageSourceConverter.cs
- ZipIOFileItemStream.cs
- XmlSchemaObjectCollection.cs
- TableLayoutSettings.cs
- ChtmlMobileTextWriter.cs
- CacheMode.cs
- TableChangeProcessor.cs
- DataSourceSelectArguments.cs
- UIElement.cs
- HashUtility.cs
- CharEnumerator.cs
- VectorAnimation.cs
- ThreadPool.cs
- TraceSection.cs
- MetadataItem_Static.cs
- HostingEnvironment.cs
- WmpBitmapEncoder.cs
- OleDbErrorCollection.cs
- FormattedTextSymbols.cs
- ListItemConverter.cs
- COM2TypeInfoProcessor.cs
- PropertyPathConverter.cs
- RequestCachePolicyConverter.cs
- DataGridViewDataConnection.cs
- WebPartConnectionsCloseVerb.cs
- WindowsGraphicsCacheManager.cs
- TypedTableBase.cs
- GridViewEditEventArgs.cs
- DbModificationCommandTree.cs
- FileDialogCustomPlace.cs
- _UriTypeConverter.cs
- TagMapCollection.cs
- RouteUrlExpressionBuilder.cs
- ConstructorNeedsTagAttribute.cs
- DataGridTable.cs
- ExpressionPrefixAttribute.cs
- DesignerDataParameter.cs
- SqlRowUpdatedEvent.cs
- TableCell.cs
- OleDbInfoMessageEvent.cs
- TimersDescriptionAttribute.cs
- WaitHandleCannotBeOpenedException.cs