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
- DataGridViewTextBoxColumn.cs
- URL.cs
- AutomationElementCollection.cs
- NamedPipeProcessProtocolHandler.cs
- ItemCollection.cs
- shaperfactoryquerycacheentry.cs
- SQLBinaryStorage.cs
- CalendarTable.cs
- EnumerableValidator.cs
- WorkflowStateRollbackService.cs
- GifBitmapEncoder.cs
- UserPreferenceChangedEventArgs.cs
- CodeParameterDeclarationExpressionCollection.cs
- HtmlDocument.cs
- QilXmlReader.cs
- CodeChecksumPragma.cs
- ResourceDescriptionAttribute.cs
- DataBoundLiteralControl.cs
- KeyGestureConverter.cs
- TypefaceCollection.cs
- ObjectStorage.cs
- CaseInsensitiveHashCodeProvider.cs
- WindowsStatusBar.cs
- DesignerDataParameter.cs
- MethodCallConverter.cs
- ZipIOFileItemStream.cs
- SimpleMailWebEventProvider.cs
- SuppressIldasmAttribute.cs
- formatter.cs
- DataGridCommandEventArgs.cs
- SessionState.cs
- XmlExtensionFunction.cs
- XmlSchemaException.cs
- StateMachineSubscription.cs
- ListItemParagraph.cs
- ProjectionCamera.cs
- safex509handles.cs
- RegexParser.cs
- PageStatePersister.cs
- ProfileModule.cs
- ImpersonateTokenRef.cs
- BaseDataBoundControl.cs
- WebControl.cs
- BidPrivateBase.cs
- ApplicationServiceHelper.cs
- isolationinterop.cs
- ThicknessAnimation.cs
- IgnoreSection.cs
- SettingsSavedEventArgs.cs
- HttpListenerTimeoutManager.cs
- PasswordTextContainer.cs
- RegexWorker.cs
- PeerPresenceInfo.cs
- OuterGlowBitmapEffect.cs
- CqlWriter.cs
- ChildTable.cs
- WindowsIPAddress.cs
- StringUtil.cs
- GACMembershipCondition.cs
- NumberSubstitution.cs
- ChangeDirector.cs
- ListViewInsertEventArgs.cs
- TaskFactory.cs
- MetadataItemEmitter.cs
- ComplexBindingPropertiesAttribute.cs
- HandledEventArgs.cs
- DesignerProperties.cs
- Visual3D.cs
- AQNBuilder.cs
- ExpressionPrefixAttribute.cs
- FontSource.cs
- ExpressionConverter.cs
- FileSystemEventArgs.cs
- ChangeTracker.cs
- CopyCodeAction.cs
- TransformCollection.cs
- Attachment.cs
- StylusCollection.cs
- TypeDefinition.cs
- TransformDescriptor.cs
- CompiledRegexRunnerFactory.cs
- SqlError.cs
- Symbol.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ChannelManager.cs
- CaseCqlBlock.cs
- FilteredDataSetHelper.cs
- ResolveNameEventArgs.cs
- InputLanguage.cs
- TextCompositionManager.cs
- ReadOnlyHierarchicalDataSource.cs
- HtmlWindow.cs
- UInt64.cs
- SerialStream.cs
- ToolstripProfessionalRenderer.cs
- SoapSchemaImporter.cs
- ItemList.cs
- AsyncCompletedEventArgs.cs
- Decimal.cs
- FixedSOMPage.cs