Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / ByteFacetDescriptionElement.cs / 1 / ByteFacetDescriptionElement.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Data.Metadata.Edm; using System.Xml; using System.Diagnostics; namespace System.Data.EntityModel.SchemaObjectModel { internal sealed class ByteFacetDescriptionElement : FacetDescriptionElement { public ByteFacetDescriptionElement(TypeElement type, string name) :base(type, name) { } public override EdmType FacetType { get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Byte); } } ///////////////////////////////////////////////////////////////////// // Attribute Handlers ////// Handler for the Default attribute /// /// xml reader currently positioned at Default attribute protected override void HandleDefaultAttribute(XmlReader reader) { byte value = 0; if (HandleByteAttribute(reader, ref value)) { DefaultValue = (Byte)value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Data.Metadata.Edm; using System.Xml; using System.Diagnostics; namespace System.Data.EntityModel.SchemaObjectModel { internal sealed class ByteFacetDescriptionElement : FacetDescriptionElement { public ByteFacetDescriptionElement(TypeElement type, string name) :base(type, name) { } public override EdmType FacetType { get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Byte); } } ///////////////////////////////////////////////////////////////////// // Attribute Handlers ////// Handler for the Default attribute /// /// xml reader currently positioned at Default attribute protected override void HandleDefaultAttribute(XmlReader reader) { byte value = 0; if (HandleByteAttribute(reader, ref value)) { DefaultValue = (Byte)value; } } } } // 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
- AmbientProperties.cs
- ModuleBuilder.cs
- XmlEntity.cs
- MessageFilterTable.cs
- DynamicDiscoveryDocument.cs
- ModulesEntry.cs
- ListControl.cs
- SpecialNameAttribute.cs
- PointCollectionValueSerializer.cs
- Utils.cs
- ContainerAction.cs
- HttpStaticObjectsCollectionWrapper.cs
- DecoderFallback.cs
- CardSpaceShim.cs
- HitTestWithPointDrawingContextWalker.cs
- ChannelCredentials.cs
- Rights.cs
- WebPartDisplayMode.cs
- VisualTreeHelper.cs
- ActivityPreviewDesigner.cs
- SocketInformation.cs
- DetailsViewPagerRow.cs
- FileSystemInfo.cs
- XmlSchemaType.cs
- ItemCollection.cs
- LeaseManager.cs
- NullRuntimeConfig.cs
- WinFormsSpinner.cs
- TreeViewBindingsEditorForm.cs
- RadioButtonBaseAdapter.cs
- TextElement.cs
- RuntimeHelpers.cs
- RootBuilder.cs
- BindingObserver.cs
- StorageRoot.cs
- ContainerUtilities.cs
- OleCmdHelper.cs
- XamlFilter.cs
- Help.cs
- Help.cs
- QueryLifecycle.cs
- TimeIntervalCollection.cs
- DataControlImageButton.cs
- InstanceKeyCollisionException.cs
- TextElementCollectionHelper.cs
- PrintPreviewControl.cs
- CompiledAction.cs
- updateconfighost.cs
- XmlWriterDelegator.cs
- StateMachineAction.cs
- WebBrowsableAttribute.cs
- MenuCommand.cs
- SingleQueryOperator.cs
- WebScriptEndpoint.cs
- StylusDownEventArgs.cs
- EventProviderWriter.cs
- DiffuseMaterial.cs
- WebPartConnectionsCloseVerb.cs
- GridView.cs
- XPathArrayIterator.cs
- IdentityModelDictionary.cs
- FixedBufferAttribute.cs
- ToolStrip.cs
- TextCompositionManager.cs
- AbandonedMutexException.cs
- _UncName.cs
- TextBoxBase.cs
- ArrayListCollectionBase.cs
- LinqDataSourceSelectEventArgs.cs
- SequenceRangeCollection.cs
- MouseActionConverter.cs
- DataGridViewColumnConverter.cs
- MenuCommandsChangedEventArgs.cs
- SecurityUtils.cs
- BindingNavigator.cs
- TreeViewDesigner.cs
- MessageBox.cs
- NetworkInformationException.cs
- XmlRawWriter.cs
- CheckBoxStandardAdapter.cs
- ZeroOpNode.cs
- WmiInstallComponent.cs
- ParameterCollectionEditorForm.cs
- Maps.cs
- SystemIPv6InterfaceProperties.cs
- TextWriter.cs
- ToolStripProgressBar.cs
- CellCreator.cs
- DotAtomReader.cs
- CollectionContainer.cs
- Focus.cs
- BamlTreeNode.cs
- ComponentCommands.cs
- StreamReader.cs
- ContextMenu.cs
- DataGridGeneralPage.cs
- TextRenderingModeValidation.cs
- FontStretchConverter.cs
- LocatorPartList.cs
- DataViewSettingCollection.cs