Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / Configuration / SchemaImporterExtensionsSection.cs / 1305376 / SchemaImporterExtensionsSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization.Configuration { using System.Configuration; using System.Collections; using System.Globalization; using System.Reflection; using System.Threading; using System.Xml.Serialization.Advanced; public sealed class SchemaImporterExtensionsSection : ConfigurationSection { public SchemaImporterExtensionsSection() { this.properties.Add(this.schemaImporterExtensions); } private static string GetSqlTypeSchemaImporter(string typeName) { return "System.Data.SqlTypes." + typeName + ", " + AssemblyRef.SystemData; } protected override void InitializeDefault() { this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterChar, GetSqlTypeSchemaImporter("TypeCharSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterNChar, GetSqlTypeSchemaImporter("TypeNCharSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterVarChar, GetSqlTypeSchemaImporter("TypeVarCharSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterNVarChar, GetSqlTypeSchemaImporter("TypeNVarCharSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterText, GetSqlTypeSchemaImporter("TypeTextSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterNText, GetSqlTypeSchemaImporter("TypeNTextSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterVarBinary, GetSqlTypeSchemaImporter("TypeVarBinarySchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterBinary, GetSqlTypeSchemaImporter("TypeBinarySchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterImage, GetSqlTypeSchemaImporter("TypeVarImageSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterDecimal, GetSqlTypeSchemaImporter("TypeDecimalSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterNumeric, GetSqlTypeSchemaImporter("TypeNumericSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterBigInt, GetSqlTypeSchemaImporter("TypeBigIntSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterInt, GetSqlTypeSchemaImporter("TypeIntSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterSmallInt, GetSqlTypeSchemaImporter("TypeSmallIntSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterTinyInt, GetSqlTypeSchemaImporter("TypeTinyIntSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterBit, GetSqlTypeSchemaImporter("TypeBitSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterFloat, GetSqlTypeSchemaImporter("TypeFloatSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterReal, GetSqlTypeSchemaImporter("TypeRealSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterDateTime, GetSqlTypeSchemaImporter("TypeDateTimeSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterSmallDateTime, GetSqlTypeSchemaImporter("TypeSmallDateTimeSchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterMoney, GetSqlTypeSchemaImporter("TypeMoneySchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterSmallMoney, GetSqlTypeSchemaImporter("TypeSmallMoneySchemaImporterExtension"))); this.SchemaImporterExtensions.Add( new SchemaImporterExtensionElement(ConfigurationStrings.SqlTypesSchemaImporterUniqueIdentifier, GetSqlTypeSchemaImporter("TypeUniqueIdentifierSchemaImporterExtension"))); } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } [ConfigurationProperty("", IsDefaultCollection = true)] public SchemaImporterExtensionElementCollection SchemaImporterExtensions { get { return (SchemaImporterExtensionElementCollection)this[this.schemaImporterExtensions]; } } internal SchemaImporterExtensionCollection SchemaImporterExtensionsInternal { get { SchemaImporterExtensionCollection extensions = new SchemaImporterExtensionCollection(); foreach(SchemaImporterExtensionElement elem in this.SchemaImporterExtensions) { extensions.Add(elem.Name, elem.Type); } return extensions; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty schemaImporterExtensions = new ConfigurationProperty(null, typeof(SchemaImporterExtensionElementCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); } } // 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
- PolicyChain.cs
- OneToOneMappingSerializer.cs
- DataControlField.cs
- Gdiplus.cs
- SqlNodeAnnotations.cs
- Crc32.cs
- SmiMetaData.cs
- ReceiveSecurityHeaderElementManager.cs
- ValidationRule.cs
- SinglePageViewer.cs
- OrderedParallelQuery.cs
- TableCell.cs
- UserPersonalizationStateInfo.cs
- DataGridViewTextBoxEditingControl.cs
- MaskedTextProvider.cs
- UpdateException.cs
- UrlMappingsSection.cs
- DataGridSortCommandEventArgs.cs
- DataKeyArray.cs
- SafeNativeMethods.cs
- SpotLight.cs
- SqlPersonalizationProvider.cs
- UrlAuthFailedErrorFormatter.cs
- Fault.cs
- PrintDialog.cs
- ManagedIStream.cs
- TextViewDesigner.cs
- XXXInfos.cs
- BitmapEffectGroup.cs
- VectorAnimation.cs
- ChildDocumentBlock.cs
- FamilyTypeface.cs
- DynamicMethod.cs
- BinaryObjectInfo.cs
- ComponentSerializationService.cs
- ReadOnlyDictionary.cs
- ContainerSelectorActiveEvent.cs
- AbsoluteQuery.cs
- HttpProxyCredentialType.cs
- CustomAttributeFormatException.cs
- EventLogPropertySelector.cs
- InvokePatternIdentifiers.cs
- DiscreteKeyFrames.cs
- ListViewDataItem.cs
- ConfigurationException.cs
- WrappedDispatcherException.cs
- SerializableReadOnlyDictionary.cs
- TextEditorSpelling.cs
- StringFormat.cs
- Compiler.cs
- propertytag.cs
- ObjectItemCollection.cs
- HtmlTextArea.cs
- ConfigUtil.cs
- Triangle.cs
- MonthCalendar.cs
- PrintPreviewControl.cs
- EntityDataSourceStatementEditorForm.cs
- ApplicationDirectoryMembershipCondition.cs
- UrlRoutingHandler.cs
- TypeBrowserDialog.cs
- codemethodreferenceexpression.cs
- BindingSource.cs
- TextServicesPropertyRanges.cs
- SiteMapNodeItemEventArgs.cs
- KeysConverter.cs
- HebrewNumber.cs
- ProfileModule.cs
- Brush.cs
- FontNamesConverter.cs
- EdmComplexTypeAttribute.cs
- TreeViewImageIndexConverter.cs
- DataFormats.cs
- UrlMapping.cs
- PatternMatcher.cs
- FixedSOMFixedBlock.cs
- MemberDomainMap.cs
- ButtonBaseAutomationPeer.cs
- WindowsButton.cs
- complextypematerializer.cs
- XmlSerializerAssemblyAttribute.cs
- HostingEnvironmentSection.cs
- TextBoxAutomationPeer.cs
- ComAdminInterfaces.cs
- ToolStripOverflow.cs
- EditBehavior.cs
- ClientRuntime.cs
- DataGridViewRowStateChangedEventArgs.cs
- UnSafeCharBuffer.cs
- ManipulationVelocities.cs
- TargetParameterCountException.cs
- UiaCoreProviderApi.cs
- CheckBoxList.cs
- SHA1.cs
- WebPartTransformerCollection.cs
- SchemaAttDef.cs
- XmlResolver.cs
- HyperLink.cs
- DynamicFilterExpression.cs
- SHA512.cs