Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / XmlElementAttribute.cs / 1305376 / XmlElementAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; ////// /// [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=true)] public class XmlElementAttribute : System.Attribute { string elementName; Type type; string ns; string dataType; bool nullable; bool nullableSpecified; XmlSchemaForm form = XmlSchemaForm.None; int order = -1; ///[To be supplied.] ////// /// public XmlElementAttribute() { } ///[To be supplied.] ////// /// public XmlElementAttribute(string elementName) { this.elementName = elementName; } ///[To be supplied.] ////// /// public XmlElementAttribute(Type type) { this.type = type; } ///[To be supplied.] ////// /// public XmlElementAttribute(string elementName, Type type) { this.elementName = elementName; this.type = type; } ///[To be supplied.] ////// /// public Type Type { get { return type; } set { type = value; } } ///[To be supplied.] ////// /// public string ElementName { get { return elementName == null ? string.Empty : elementName; } set { elementName = value; } } ///[To be supplied.] ////// /// public string Namespace { get { return ns; } set { ns = value; } } ///[To be supplied.] ////// /// public string DataType { get { return dataType == null ? string.Empty : dataType; } set { dataType = value; } } ///[To be supplied.] ////// /// public bool IsNullable { get { return nullable; } set { nullable = value; nullableSpecified = true; } } internal bool IsNullableSpecified { get { return nullableSpecified; } } ///[To be supplied.] ////// /// public XmlSchemaForm Form { get { return form; } set { form = value; } } ///[To be supplied.] ////// /// public int Order { get { return order; } set { if (value < 0) throw new ArgumentException(Res.GetString(Res.XmlDisallowNegativeValues), "Order"); order = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System; using System.Xml.Schema; ////// /// [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=true)] public class XmlElementAttribute : System.Attribute { string elementName; Type type; string ns; string dataType; bool nullable; bool nullableSpecified; XmlSchemaForm form = XmlSchemaForm.None; int order = -1; ///[To be supplied.] ////// /// public XmlElementAttribute() { } ///[To be supplied.] ////// /// public XmlElementAttribute(string elementName) { this.elementName = elementName; } ///[To be supplied.] ////// /// public XmlElementAttribute(Type type) { this.type = type; } ///[To be supplied.] ////// /// public XmlElementAttribute(string elementName, Type type) { this.elementName = elementName; this.type = type; } ///[To be supplied.] ////// /// public Type Type { get { return type; } set { type = value; } } ///[To be supplied.] ////// /// public string ElementName { get { return elementName == null ? string.Empty : elementName; } set { elementName = value; } } ///[To be supplied.] ////// /// public string Namespace { get { return ns; } set { ns = value; } } ///[To be supplied.] ////// /// public string DataType { get { return dataType == null ? string.Empty : dataType; } set { dataType = value; } } ///[To be supplied.] ////// /// public bool IsNullable { get { return nullable; } set { nullable = value; nullableSpecified = true; } } internal bool IsNullableSpecified { get { return nullableSpecified; } } ///[To be supplied.] ////// /// public XmlSchemaForm Form { get { return form; } set { form = value; } } ///[To be supplied.] ////// /// public int Order { get { return order; } set { if (value < 0) throw new ArgumentException(Res.GetString(Res.XmlDisallowNegativeValues), "Order"); order = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ButtonBaseAdapter.cs
- FileDialog_Vista.cs
- ValueTable.cs
- SoapReflectionImporter.cs
- PointCollection.cs
- TraceContext.cs
- XmlNotation.cs
- SchemaContext.cs
- Set.cs
- GlyphShapingProperties.cs
- HtmlElement.cs
- SafeRightsManagementQueryHandle.cs
- Dispatcher.cs
- ContentIterators.cs
- _KerberosClient.cs
- OracleBFile.cs
- ApplicationActivator.cs
- RC2CryptoServiceProvider.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ValidationPropertyAttribute.cs
- BidPrivateBase.cs
- UniqueSet.cs
- ObjectListShowCommandsEventArgs.cs
- CatchBlock.cs
- AssemblyAssociatedContentFileAttribute.cs
- SqlAliasesReferenced.cs
- IsolatedStorageFileStream.cs
- CodeDirectiveCollection.cs
- FacetValues.cs
- PackageDigitalSignature.cs
- NavigationService.cs
- PenThreadPool.cs
- HtmlValidatorAdapter.cs
- MediaPlayer.cs
- SpeechRecognitionEngine.cs
- AuthorizationRule.cs
- precedingquery.cs
- Int64Converter.cs
- DiscoveryDocumentLinksPattern.cs
- ObjectReaderCompiler.cs
- RepeatBehavior.cs
- DataGridViewCellStyleConverter.cs
- SpecularMaterial.cs
- Double.cs
- TextTreeDeleteContentUndoUnit.cs
- State.cs
- LinearKeyFrames.cs
- ProtocolsConfiguration.cs
- DataFormats.cs
- DetailsViewUpdatedEventArgs.cs
- ProxyElement.cs
- DesignSurfaceEvent.cs
- CapabilitiesRule.cs
- Match.cs
- EventRecord.cs
- EncodingDataItem.cs
- MediaScriptCommandRoutedEventArgs.cs
- LogRestartAreaEnumerator.cs
- Duration.cs
- DbParameterCollectionHelper.cs
- TypeResolvingOptionsAttribute.cs
- AvtEvent.cs
- FlowDocumentScrollViewer.cs
- ExplicitDiscriminatorMap.cs
- AttributeProviderAttribute.cs
- Task.cs
- FontFamily.cs
- x509store.cs
- Command.cs
- EastAsianLunisolarCalendar.cs
- XmlException.cs
- CodeCatchClause.cs
- ModelPerspective.cs
- RectAnimation.cs
- ReferenceEqualityComparer.cs
- Symbol.cs
- HttpHandlerAction.cs
- WebPartDisplayModeCollection.cs
- Brushes.cs
- VBCodeProvider.cs
- AppSettingsExpressionBuilder.cs
- ReaderContextStackData.cs
- CodeTypeParameter.cs
- SqlExpressionNullability.cs
- SqlTrackingQuery.cs
- SiteMapDesignerDataSourceView.cs
- VideoDrawing.cs
- HealthMonitoringSection.cs
- Pts.cs
- SecurityPolicySection.cs
- SystemColorTracker.cs
- WindowsUpDown.cs
- SelectionUIHandler.cs
- StringTraceRecord.cs
- InheritanceRules.cs
- CompilerTypeWithParams.cs
- RequestResizeEvent.cs
- SHA512.cs
- GlyphCache.cs
- ISCIIEncoding.cs