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
- DetailsViewPageEventArgs.cs
- TargetConverter.cs
- Stack.cs
- TdsParserHelperClasses.cs
- FlowDocumentFormatter.cs
- PartialCachingControl.cs
- Range.cs
- EmptyImpersonationContext.cs
- DataObject.cs
- SimpleWorkerRequest.cs
- AuthenticationService.cs
- LassoHelper.cs
- ServiceModelConfigurationSectionCollection.cs
- TextSchema.cs
- BufferBuilder.cs
- PageClientProxyGenerator.cs
- PersistStreamTypeWrapper.cs
- SamlDoNotCacheCondition.cs
- NestedContainer.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- DrawingAttributesDefaultValueFactory.cs
- XmlNamespaceMapping.cs
- ClientFormsAuthenticationCredentials.cs
- UnsafeNativeMethods.cs
- StringArrayConverter.cs
- DataContractSerializerOperationBehavior.cs
- TypeNameConverter.cs
- EventLogInternal.cs
- DataView.cs
- ToolTipService.cs
- SwitchElementsCollection.cs
- UIInitializationException.cs
- Itemizer.cs
- ProfessionalColorTable.cs
- RMEnrollmentPage2.cs
- CodeComment.cs
- SchemaSetCompiler.cs
- InstrumentationTracker.cs
- OracleSqlParser.cs
- AuthenticationConfig.cs
- FeatureSupport.cs
- ClientTargetSection.cs
- ColorBlend.cs
- ColorBlend.cs
- X509DefaultServiceCertificateElement.cs
- CheckBoxBaseAdapter.cs
- HMACRIPEMD160.cs
- DataServiceEntityAttribute.cs
- StringUtil.cs
- SymbolDocumentGenerator.cs
- EmbeddedObject.cs
- ExtensionQuery.cs
- FontFamily.cs
- InternalBase.cs
- HostProtectionException.cs
- SystemIPGlobalStatistics.cs
- xmlfixedPageInfo.cs
- TimeSpanValidatorAttribute.cs
- HttpDictionary.cs
- ReadOnlyDictionary.cs
- HebrewCalendar.cs
- StringUtil.cs
- BamlRecords.cs
- MenuStrip.cs
- FormViewRow.cs
- TreeViewAutomationPeer.cs
- ParserStreamGeometryContext.cs
- DataGridViewComboBoxEditingControl.cs
- ClientSponsor.cs
- MetadataProperty.cs
- CodeMethodReturnStatement.cs
- ClientBuildManager.cs
- FormsAuthenticationUser.cs
- XmlDataLoader.cs
- WebPartConnectVerb.cs
- Win32KeyboardDevice.cs
- DecodeHelper.cs
- XmlSerializerVersionAttribute.cs
- ExtentCqlBlock.cs
- SingleAnimationUsingKeyFrames.cs
- DoubleSumAggregationOperator.cs
- ConfigurationException.cs
- AVElementHelper.cs
- recordstate.cs
- IISMapPath.cs
- SQLInt32.cs
- ObjectSpanRewriter.cs
- DSACryptoServiceProvider.cs
- GridViewCellAutomationPeer.cs
- Rect3D.cs
- ValidationPropertyAttribute.cs
- DuplicateWaitObjectException.cs
- Module.cs
- BulletedList.cs
- DirectoryLocalQuery.cs
- SqlInternalConnection.cs
- ValidatorCollection.cs
- CompilerState.cs
- AdornerPresentationContext.cs
- IgnorePropertiesAttribute.cs