Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / ByteFacetDescriptionElement.cs / 2 / 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
- SingleAnimationUsingKeyFrames.cs
- FocusWithinProperty.cs
- RectangleConverter.cs
- CodeDOMProvider.cs
- InkCanvasSelection.cs
- Bitmap.cs
- TableChangeProcessor.cs
- ImageSource.cs
- MenuItemStyleCollection.cs
- X509Chain.cs
- Identity.cs
- WeakRefEnumerator.cs
- BulletedListEventArgs.cs
- RegexCode.cs
- XPathMessageFilterElementCollection.cs
- PrintSchema.cs
- TableRowsCollectionEditor.cs
- XmlWellformedWriter.cs
- DetailsViewDeletedEventArgs.cs
- EntitySqlQueryCacheKey.cs
- SchemaTableOptionalColumn.cs
- Literal.cs
- AnnotationHighlightLayer.cs
- QilTernary.cs
- AxParameterData.cs
- DbConnectionPoolIdentity.cs
- SqlConnectionStringBuilder.cs
- ModelItemCollection.cs
- RelationshipDetailsRow.cs
- _ScatterGatherBuffers.cs
- XPathNavigator.cs
- Blend.cs
- UnsignedPublishLicense.cs
- EventHandlerList.cs
- CompositeControl.cs
- DBCommand.cs
- AttachInfo.cs
- Repeater.cs
- ToolBarButtonDesigner.cs
- XmlAttributeCollection.cs
- CodeCatchClauseCollection.cs
- CharStorage.cs
- DbParameterHelper.cs
- SafeCoTaskMem.cs
- AnnotationStore.cs
- Repeater.cs
- SharedStatics.cs
- DataTemplateKey.cs
- AsymmetricAlgorithm.cs
- CngAlgorithm.cs
- DocumentGridPage.cs
- Rotation3DAnimation.cs
- Drawing.cs
- SqlRemoveConstantOrderBy.cs
- StickyNoteContentControl.cs
- CngProvider.cs
- DataObjectSettingDataEventArgs.cs
- DictionaryBase.cs
- TraceContextRecord.cs
- MergeFailedEvent.cs
- MarkedHighlightComponent.cs
- AmbiguousMatchException.cs
- _TimerThread.cs
- DrawingContextDrawingContextWalker.cs
- ContentDisposition.cs
- SimpleType.cs
- NativeMethods.cs
- ReadOnlyDataSourceView.cs
- NullableBoolConverter.cs
- HttpStreams.cs
- ArgumentDesigner.xaml.cs
- EventBookmark.cs
- ExecutionContext.cs
- WindowsEditBoxRange.cs
- ValidatedControlConverter.cs
- WebHttpBehavior.cs
- DbSource.cs
- BufferedGraphicsContext.cs
- SortDescription.cs
- MergeExecutor.cs
- Exception.cs
- AsymmetricKeyExchangeFormatter.cs
- DispatcherFrame.cs
- DataControlImageButton.cs
- OleStrCAMarshaler.cs
- FilterQuery.cs
- UnSafeCharBuffer.cs
- ImageMapEventArgs.cs
- ZipIOExtraFieldElement.cs
- CharacterString.cs
- ToolboxSnapDragDropEventArgs.cs
- PaginationProgressEventArgs.cs
- SvcMapFileLoader.cs
- UnsafeNativeMethods.cs
- PerfCounterSection.cs
- ZipIOExtraFieldZip64Element.cs
- ProfileEventArgs.cs
- TemplatedWizardStep.cs
- DataGridItem.cs
- AsymmetricSignatureFormatter.cs