Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / ByteFacetDescriptionElement.cs / 1305376 / 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
- SemaphoreSlim.cs
- SharedDp.cs
- SafeRightsManagementQueryHandle.cs
- TreeViewHitTestInfo.cs
- BamlLocalizationDictionary.cs
- DataViewSetting.cs
- DeflateEmulationStream.cs
- CachedFontFamily.cs
- AutoResetEvent.cs
- TextViewSelectionProcessor.cs
- RuntimeHelpers.cs
- EventLogLink.cs
- DrawingBrush.cs
- DataGridViewCellMouseEventArgs.cs
- AspNetHostingPermission.cs
- DataGridBoolColumn.cs
- CheckBoxList.cs
- ResourcePool.cs
- SystemNetHelpers.cs
- MaterialCollection.cs
- PhoneCallDesigner.cs
- LineServices.cs
- SiteOfOriginPart.cs
- FrameDimension.cs
- EncryptedHeaderXml.cs
- CodeDOMUtility.cs
- ChildrenQuery.cs
- ColorKeyFrameCollection.cs
- CounterSampleCalculator.cs
- MessageQueueAccessControlEntry.cs
- MappingItemCollection.cs
- RepeatButton.cs
- AsyncResult.cs
- ApplicationServiceHelper.cs
- DataGridViewTopLeftHeaderCell.cs
- SqlDeflator.cs
- ReflectionHelper.cs
- CssStyleCollection.cs
- SqlDataSourceQueryEditor.cs
- RemotingSurrogateSelector.cs
- GridViewSortEventArgs.cs
- EventMappingSettingsCollection.cs
- LongValidatorAttribute.cs
- SafeUserTokenHandle.cs
- SettingsSection.cs
- MultipartContentParser.cs
- AdapterDictionary.cs
- ChainOfDependencies.cs
- CodeCastExpression.cs
- ZipIORawDataFileBlock.cs
- TraceHandler.cs
- MdiWindowListItemConverter.cs
- COM2PropertyPageUITypeConverter.cs
- DataGridViewTopLeftHeaderCell.cs
- SocketElement.cs
- MultiByteCodec.cs
- MorphHelpers.cs
- DataGridViewCellEventArgs.cs
- SqlDataReaderSmi.cs
- wmiprovider.cs
- SiteMap.cs
- GetPageCompletedEventArgs.cs
- XmlSchemaAnnotated.cs
- DecimalConverter.cs
- SelectedGridItemChangedEvent.cs
- RuntimeHandles.cs
- VirtualizedItemPattern.cs
- WCFServiceClientProxyGenerator.cs
- WebPartZoneBase.cs
- TextClipboardData.cs
- EventHandlerList.cs
- WebService.cs
- DataRowChangeEvent.cs
- LowerCaseStringConverter.cs
- SessionStateSection.cs
- HttpServerUtilityWrapper.cs
- SendMailErrorEventArgs.cs
- Dynamic.cs
- WmlLabelAdapter.cs
- PackageRelationshipSelector.cs
- UnsafeNativeMethodsCLR.cs
- ObjectPropertyMapping.cs
- Int64AnimationBase.cs
- DataList.cs
- TextRange.cs
- VectorCollectionConverter.cs
- ComponentChangedEvent.cs
- IsolatedStorageException.cs
- ParallelTimeline.cs
- SqlCommandSet.cs
- ClientRoleProvider.cs
- ReflectTypeDescriptionProvider.cs
- SqlWebEventProvider.cs
- FixedSOMFixedBlock.cs
- FormsAuthenticationUser.cs
- ByValueEqualityComparer.cs
- ObjectListCommandEventArgs.cs
- Screen.cs
- ScrollEvent.cs
- MouseEvent.cs