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
- WebPartConnectionsConnectVerb.cs
- IdnMapping.cs
- LogicalMethodInfo.cs
- Label.cs
- XmlAttributeCollection.cs
- NavigationCommands.cs
- UnionCodeGroup.cs
- SortDescriptionCollection.cs
- BaseParagraph.cs
- CommandHelpers.cs
- ComplexBindingPropertiesAttribute.cs
- Contracts.cs
- SurrogateDataContract.cs
- TaskSchedulerException.cs
- CreateUserErrorEventArgs.cs
- RoleProviderPrincipal.cs
- IntellisenseTextBox.designer.cs
- Resources.Designer.cs
- KeyTime.cs
- AsyncPostBackErrorEventArgs.cs
- ClientSettings.cs
- CallSiteHelpers.cs
- RectIndependentAnimationStorage.cs
- SettingsProviderCollection.cs
- PropertyGeneratedEventArgs.cs
- MetadataSerializer.cs
- Thickness.cs
- ParserExtension.cs
- HashStream.cs
- ClipboardData.cs
- Frame.cs
- TitleStyle.cs
- BStrWrapper.cs
- Size.cs
- SynchronousChannel.cs
- SqlDataSourceSelectingEventArgs.cs
- IdentitySection.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- Pair.cs
- StringCollectionEditor.cs
- ClrPerspective.cs
- DecoderExceptionFallback.cs
- DbDeleteCommandTree.cs
- HostingEnvironmentException.cs
- ButtonBaseAutomationPeer.cs
- LoadWorkflowByInstanceKeyCommand.cs
- CommandExpr.cs
- FontFamily.cs
- ObjectParameterCollection.cs
- ServerProtocol.cs
- ListBindableAttribute.cs
- ShaderRenderModeValidation.cs
- WebReferencesBuildProvider.cs
- XmlSchemaDocumentation.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- FontStyleConverter.cs
- OdbcErrorCollection.cs
- VerticalAlignConverter.cs
- HyperLinkField.cs
- DataPointer.cs
- MaskDesignerDialog.cs
- DataGridViewCellParsingEventArgs.cs
- PrintDialogException.cs
- WebHttpSecurityElement.cs
- QueuePathDialog.cs
- BaseTemplateParser.cs
- HttpProtocolImporter.cs
- PseudoWebRequest.cs
- PageThemeCodeDomTreeGenerator.cs
- StaticTextPointer.cs
- SynchronousSendBindingElement.cs
- SqlFlattener.cs
- TypeDescriptor.cs
- indexingfiltermarshaler.cs
- MethodMessage.cs
- QilReplaceVisitor.cs
- ContextStaticAttribute.cs
- peersecuritysettings.cs
- String.cs
- DynamicResourceExtensionConverter.cs
- MetadataCache.cs
- MetadataCacheItem.cs
- DbConnectionPool.cs
- CornerRadius.cs
- DefaultAutoFieldGenerator.cs
- ISAPIApplicationHost.cs
- PerformanceCounterPermissionEntryCollection.cs
- LocationInfo.cs
- HWStack.cs
- GeometryModel3D.cs
- SymbolType.cs
- ApplicationSecurityInfo.cs
- NavigationWindowAutomationPeer.cs
- URLString.cs
- JoinTreeNode.cs
- StopStoryboard.cs
- PointF.cs
- RightsController.cs
- ProfileManager.cs
- WorkflowItemsPresenter.cs