Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ElasticEase.cs
- FusionWrap.cs
- CallbackHandler.cs
- Rfc2898DeriveBytes.cs
- TableSectionStyle.cs
- SemaphoreFullException.cs
- DocumentPageTextView.cs
- DesignerGenericWebPart.cs
- NavigatingCancelEventArgs.cs
- CompilerInfo.cs
- CancelRequestedQuery.cs
- IxmlLineInfo.cs
- TableItemPattern.cs
- TextTreeObjectNode.cs
- BitmapEffectGroup.cs
- ConstraintManager.cs
- ExecutionEngineException.cs
- ObjectRef.cs
- GetWinFXPath.cs
- WebScriptEnablingBehavior.cs
- KeyManager.cs
- HtmlLiteralTextAdapter.cs
- UidPropertyAttribute.cs
- RemotingException.cs
- PerformanceCounterLib.cs
- HyperLinkStyle.cs
- LabelExpression.cs
- XhtmlBasicValidationSummaryAdapter.cs
- ProjectedWrapper.cs
- AuthenticatedStream.cs
- ProcessInputEventArgs.cs
- RecordsAffectedEventArgs.cs
- DataRowExtensions.cs
- LogEntrySerialization.cs
- ComponentChangedEvent.cs
- RadioButton.cs
- DataGridTableStyleMappingNameEditor.cs
- ImageInfo.cs
- AsyncOperationManager.cs
- ComponentChangedEvent.cs
- Vars.cs
- ConvertEvent.cs
- DBConnection.cs
- UpdateTracker.cs
- PathParser.cs
- TextEditorThreadLocalStore.cs
- PageParser.cs
- StyleBamlTreeBuilder.cs
- BulletedList.cs
- XmlCollation.cs
- FaultDescription.cs
- GenericIdentity.cs
- HwndAppCommandInputProvider.cs
- JavaScriptString.cs
- SerializerDescriptor.cs
- DataRowComparer.cs
- WebColorConverter.cs
- TagMapInfo.cs
- SafeSecurityHandles.cs
- SoapBinding.cs
- InputMethodStateTypeInfo.cs
- EventSetterHandlerConverter.cs
- XmlSerializerVersionAttribute.cs
- TimeIntervalCollection.cs
- HandledMouseEvent.cs
- SafeTimerHandle.cs
- XamlStyleSerializer.cs
- LineServices.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DigitShape.cs
- TextEditorTables.cs
- COSERVERINFO.cs
- EditorBrowsableAttribute.cs
- ReferentialConstraint.cs
- FixedSOMImage.cs
- DataGridViewCellPaintingEventArgs.cs
- HandleExceptionArgs.cs
- ToolboxItemFilterAttribute.cs
- IISMapPath.cs
- DataServices.cs
- DesignerDataParameter.cs
- TimeSpanValidatorAttribute.cs
- HyperLinkStyle.cs
- CopyEncoder.cs
- TokenBasedSet.cs
- XmlValueConverter.cs
- DeferredSelectedIndexReference.cs
- DataListItemEventArgs.cs
- Drawing.cs
- SerializationInfo.cs
- LassoSelectionBehavior.cs
- RelatedView.cs
- MediaElementAutomationPeer.cs
- Animatable.cs
- PointAnimationUsingKeyFrames.cs
- AttributeQuery.cs
- EventPrivateKey.cs
- FormViewRow.cs
- linebase.cs
- SslStream.cs