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
- ActivityWithResultWrapper.cs
- SizeConverter.cs
- XpsDigitalSignature.cs
- QilTargetType.cs
- ConfigurationException.cs
- SkinBuilder.cs
- URLAttribute.cs
- DeclarativeConditionsCollection.cs
- DesignerCatalogPartChrome.cs
- Decorator.cs
- RewritingPass.cs
- SQLString.cs
- DataGridTable.cs
- DashStyle.cs
- MasterPage.cs
- CapiNative.cs
- CodeIndexerExpression.cs
- WebPageTraceListener.cs
- Panel.cs
- xamlnodes.cs
- NetworkStream.cs
- BaseTemplatedMobileComponentEditor.cs
- COM2PictureConverter.cs
- SuppressMessageAttribute.cs
- SecurityUtils.cs
- StateMachineWorkflowInstance.cs
- HTMLTagNameToTypeMapper.cs
- NeutralResourcesLanguageAttribute.cs
- WindowsAuthenticationModule.cs
- PageRanges.cs
- ListViewInsertedEventArgs.cs
- PeerPresenceInfo.cs
- RestHandler.cs
- CollectionChangedEventManager.cs
- NamedElement.cs
- __Filters.cs
- StrongNameMembershipCondition.cs
- DateTimePicker.cs
- COM2PropertyPageUITypeConverter.cs
- commandenforcer.cs
- OdbcEnvironmentHandle.cs
- XmlValidatingReader.cs
- WSSecureConversationDec2005.cs
- PeerConnector.cs
- XmlStreamStore.cs
- Error.cs
- Descriptor.cs
- DataControlFieldCell.cs
- LogicalExpr.cs
- DateTimeStorage.cs
- XmlSchemaElement.cs
- XmlCustomFormatter.cs
- DecimalConverter.cs
- CqlParser.cs
- HttpListener.cs
- MarkerProperties.cs
- TimelineGroup.cs
- ReadOnlyDictionary.cs
- SoapIncludeAttribute.cs
- LabelLiteral.cs
- TreeNodeCollectionEditorDialog.cs
- FusionWrap.cs
- ListViewAutomationPeer.cs
- HtmlTitle.cs
- ExtenderProviderService.cs
- MemoryStream.cs
- ObjectSet.cs
- AnonymousIdentificationModule.cs
- BaseResourcesBuildProvider.cs
- UnmanagedMemoryStreamWrapper.cs
- Console.cs
- BitmapEffectInput.cs
- VirtualizingStackPanel.cs
- TypeExtensionConverter.cs
- PanelDesigner.cs
- QilLoop.cs
- RuntimeVariablesExpression.cs
- ColumnTypeConverter.cs
- ParallelActivityDesigner.cs
- SoapExtensionReflector.cs
- KeyValueSerializer.cs
- RunInstallerAttribute.cs
- SqlPersistenceProviderFactory.cs
- GroupedContextMenuStrip.cs
- SystemIPGlobalStatistics.cs
- HashCodeCombiner.cs
- Token.cs
- ContractMapping.cs
- StateMachineExecutionState.cs
- PropertyItemInternal.cs
- MemberRelationshipService.cs
- XPathAncestorIterator.cs
- HtmlMeta.cs
- KerberosSecurityTokenAuthenticator.cs
- ConstraintEnumerator.cs
- dataobject.cs
- FixedSOMPage.cs
- Exceptions.cs
- SqlTrackingQuery.cs
- GZipStream.cs