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
- WebPartConnectionsCancelVerb.cs
- CompilerErrorCollection.cs
- SchemaElementDecl.cs
- FileRecordSequence.cs
- SuppressMessageAttribute.cs
- Baml2006ReaderFrame.cs
- XmlNode.cs
- HtmlLabelAdapter.cs
- ToolStripCustomTypeDescriptor.cs
- StreamGeometry.cs
- PrePrepareMethodAttribute.cs
- CommentGlyph.cs
- ProcessProtocolHandler.cs
- KnownTypesProvider.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- RtfToXamlLexer.cs
- SourceFilter.cs
- SspiWrapper.cs
- Itemizer.cs
- AspProxy.cs
- Random.cs
- CombinedGeometry.cs
- FormsAuthenticationUser.cs
- ImageCreator.cs
- EdmEntityTypeAttribute.cs
- SingleStorage.cs
- UserPreferenceChangedEventArgs.cs
- Guid.cs
- PopupRoot.cs
- GenericAuthenticationEventArgs.cs
- GroupBox.cs
- TcpChannelListener.cs
- ConnectionManagementElementCollection.cs
- BatchStream.cs
- DataGridViewTextBoxEditingControl.cs
- ConfigurationElementProperty.cs
- BindingEntityInfo.cs
- ResourceReferenceExpression.cs
- SecurityTraceRecordHelper.cs
- WindowsFont.cs
- OLEDB_Util.cs
- HMACSHA384.cs
- CodeMemberEvent.cs
- ResourceExpressionEditorSheet.cs
- TransformerTypeCollection.cs
- DirectoryInfo.cs
- ZipArchive.cs
- IncrementalReadDecoders.cs
- DefaultPrintController.cs
- CodeSnippetExpression.cs
- XPathAncestorQuery.cs
- IsolatedStorageFileStream.cs
- PerspectiveCamera.cs
- Typography.cs
- FileSystemEventArgs.cs
- CaseCqlBlock.cs
- WizardForm.cs
- HttpFileCollection.cs
- SpotLight.cs
- WebServiceFault.cs
- SafeNativeMethods.cs
- DockPattern.cs
- WindowsRichEdit.cs
- DbConnectionInternal.cs
- CfgParser.cs
- BamlReader.cs
- PrivilegeNotHeldException.cs
- EmbossBitmapEffect.cs
- Configuration.cs
- OAVariantLib.cs
- TreeNodeStyleCollection.cs
- StorageBasedPackageProperties.cs
- ReversePositionQuery.cs
- PtsHelper.cs
- PropertyValidationContext.cs
- AssemblyFilter.cs
- NameValuePermission.cs
- GPPOINT.cs
- CodeLinePragma.cs
- TreeNodeBindingCollection.cs
- SelectionEditor.cs
- PartitionedDataSource.cs
- PointLight.cs
- SqlNotificationEventArgs.cs
- Number.cs
- EpmContentSerializer.cs
- StylusDownEventArgs.cs
- serverconfig.cs
- StrokeRenderer.cs
- ClusterRegistryConfigurationProvider.cs
- InputGestureCollection.cs
- AmbientValueAttribute.cs
- PeerInvitationResponse.cs
- SystemInformation.cs
- GeneralTransform3D.cs
- AuthenticationService.cs
- RegularExpressionValidator.cs
- WebHeaderCollection.cs
- Model3DCollection.cs
- NetworkCredential.cs