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
- IRCollection.cs
- SystemResourceKey.cs
- WebEvents.cs
- ControlParameter.cs
- SqlDelegatedTransaction.cs
- RecognizedAudio.cs
- RetrieveVirtualItemEventArgs.cs
- ToolStripDropTargetManager.cs
- UIElement3D.cs
- InvokeWebService.cs
- ProfileParameter.cs
- GlyphElement.cs
- CodeMemberEvent.cs
- XmlAttributes.cs
- SqlClientMetaDataCollectionNames.cs
- URIFormatException.cs
- GridViewHeaderRowPresenter.cs
- MatrixKeyFrameCollection.cs
- ListSourceHelper.cs
- AjaxFrameworkAssemblyAttribute.cs
- ExpressionBuilder.cs
- FigureParagraph.cs
- FlowLayoutSettings.cs
- HtmlTableRowCollection.cs
- TypeUsage.cs
- LinkButton.cs
- PrinterResolution.cs
- QilTernary.cs
- FlowDocumentScrollViewer.cs
- ResourceDictionary.cs
- MsmqTransportSecurity.cs
- SafeRightsManagementSessionHandle.cs
- ThousandthOfEmRealDoubles.cs
- ModelPropertyDescriptor.cs
- TextHidden.cs
- CloudCollection.cs
- Size.cs
- CharEnumerator.cs
- XmlValidatingReader.cs
- ErrorWebPart.cs
- EntityClientCacheKey.cs
- PathSegmentCollection.cs
- TrackingLocationCollection.cs
- FontFamilyIdentifier.cs
- DefaultProxySection.cs
- ListViewSortEventArgs.cs
- TrackBar.cs
- XslAst.cs
- TlsnegoTokenAuthenticator.cs
- X509Extension.cs
- _CommandStream.cs
- NotifyInputEventArgs.cs
- UndoManager.cs
- SettingsPropertyIsReadOnlyException.cs
- HTTPNotFoundHandler.cs
- RandomNumberGenerator.cs
- OdbcConnection.cs
- FormsAuthenticationEventArgs.cs
- EmptyControlCollection.cs
- Propagator.JoinPropagator.cs
- CultureSpecificStringDictionary.cs
- Formatter.cs
- Rules.cs
- EntityViewContainer.cs
- HelpExampleGenerator.cs
- RequiredAttributeAttribute.cs
- EraserBehavior.cs
- ParentQuery.cs
- SimpleMailWebEventProvider.cs
- ElementUtil.cs
- InitializationEventAttribute.cs
- Operand.cs
- SetterBase.cs
- OdbcInfoMessageEvent.cs
- EntityDesignerUtils.cs
- IPEndPoint.cs
- ToolStripArrowRenderEventArgs.cs
- FieldTemplateFactory.cs
- ThemeableAttribute.cs
- PointLightBase.cs
- BindingGroup.cs
- DataListGeneralPage.cs
- RegexStringValidatorAttribute.cs
- LicenseContext.cs
- DesignTimeDataBinding.cs
- DataGridViewRowCollection.cs
- XmlWrappingReader.cs
- SafeThreadHandle.cs
- ToolStripCodeDomSerializer.cs
- DbProviderFactories.cs
- ComponentDispatcherThread.cs
- PropertySet.cs
- DataGridColumnCollection.cs
- ArraySet.cs
- TripleDESCryptoServiceProvider.cs
- EventArgs.cs
- CheckBoxBaseAdapter.cs
- SqlStatistics.cs
- MembershipUser.cs
- HuffCodec.cs