Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Xml / System / Xml / Serialization / XmlElementAttribute.cs / 1 / 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
- WindowsGraphicsCacheManager.cs
- smtppermission.cs
- BinaryCommonClasses.cs
- NamespaceQuery.cs
- Point3DConverter.cs
- FileLevelControlBuilderAttribute.cs
- RoleGroup.cs
- FullTrustAssembliesSection.cs
- _AcceptOverlappedAsyncResult.cs
- ReflectionUtil.cs
- KeyMatchBuilder.cs
- LockCookie.cs
- BinaryObjectWriter.cs
- InheritanceContextHelper.cs
- TileModeValidation.cs
- ConfigurationElementProperty.cs
- DataBindingCollection.cs
- Enlistment.cs
- ClaimComparer.cs
- TextControl.cs
- BitmapDecoder.cs
- NameTable.cs
- NetworkCredential.cs
- DtdParser.cs
- SignatureHelper.cs
- Panel.cs
- DataMember.cs
- ManipulationDelta.cs
- MD5CryptoServiceProvider.cs
- FontFamilyConverter.cs
- SemanticResultKey.cs
- WorkflowRequestContext.cs
- LogManagementAsyncResult.cs
- JavaScriptString.cs
- Lasso.cs
- loginstatus.cs
- BufferedStream.cs
- MailSettingsSection.cs
- ParameterElement.cs
- RecognizerInfo.cs
- LogLogRecordEnumerator.cs
- XmlWriter.cs
- GridViewSelectEventArgs.cs
- ReverseInheritProperty.cs
- AppDomainGrammarProxy.cs
- TransactionTable.cs
- WaveHeader.cs
- TrackingQueryElement.cs
- Repeater.cs
- ScrollChrome.cs
- SqlGatherProducedAliases.cs
- IgnoreFileBuildProvider.cs
- TypedServiceChannelBuilder.cs
- COM2ExtendedBrowsingHandler.cs
- SecurityPolicySection.cs
- ValidationSummaryDesigner.cs
- PageParser.cs
- GenericUriParser.cs
- UpdateTranslator.cs
- XslAstAnalyzer.cs
- CustomExpressionEventArgs.cs
- InputBindingCollection.cs
- SingleStorage.cs
- MemoryFailPoint.cs
- IgnoreFlushAndCloseStream.cs
- RegexNode.cs
- MemoryStream.cs
- CodeSubDirectory.cs
- ImageAutomationPeer.cs
- WindowsButton.cs
- ClientOptions.cs
- SHA256Managed.cs
- XmlSerializerVersionAttribute.cs
- TextEditorCharacters.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ScriptMethodAttribute.cs
- IndexedString.cs
- MobileListItem.cs
- BoolExpressionVisitors.cs
- BuildProvidersCompiler.cs
- HMACMD5.cs
- CheckBoxStandardAdapter.cs
- FormsAuthentication.cs
- SchemaLookupTable.cs
- SafeEventLogReadHandle.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TextAutomationPeer.cs
- SqlWorkflowInstanceStoreLock.cs
- ButtonColumn.cs
- InternalCache.cs
- TagMapInfo.cs
- DoubleLinkListEnumerator.cs
- XmlStreamStore.cs
- HTTPNotFoundHandler.cs
- ComNativeDescriptor.cs
- ConditionalAttribute.cs
- WebRequestModulesSection.cs
- EntityDataSourceViewSchema.cs
- EndEvent.cs
- ScriptReference.cs