Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / BooleanFacetDescriptionElement.cs / 2 / BooleanFacetDescriptionElement.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 BooleanFacetDescriptionElement : FacetDescriptionElement
{
public BooleanFacetDescriptionElement(TypeElement type, string name)
:base(type, name)
{
}
public override EdmType FacetType
{
get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Boolean); }
}
/////////////////////////////////////////////////////////////////////
// Attribute Handlers
///
/// Handler for the Default attribute
///
/// xml reader currently positioned at Default attribute
protected override void HandleDefaultAttribute(XmlReader reader)
{
bool value = false;
if (HandleBoolAttribute(reader, ref value))
{
DefaultValue = 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 BooleanFacetDescriptionElement : FacetDescriptionElement
{
public BooleanFacetDescriptionElement(TypeElement type, string name)
:base(type, name)
{
}
public override EdmType FacetType
{
get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Boolean); }
}
/////////////////////////////////////////////////////////////////////
// Attribute Handlers
///
/// Handler for the Default attribute
///
/// xml reader currently positioned at Default attribute
protected override void HandleDefaultAttribute(XmlReader reader)
{
bool value = false;
if (HandleBoolAttribute(reader, ref value))
{
DefaultValue = 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
- PersonalizationState.cs
- CanonicalFontFamilyReference.cs
- AsymmetricKeyExchangeFormatter.cs
- DragStartedEventArgs.cs
- HttpFormatExtensions.cs
- DataGridViewRowConverter.cs
- RtfToXamlLexer.cs
- TextDocumentView.cs
- RangeValueProviderWrapper.cs
- ThreadInterruptedException.cs
- MasterPageCodeDomTreeGenerator.cs
- RuleSettings.cs
- SessionStateSection.cs
- HttpHandler.cs
- ConnectionInterfaceCollection.cs
- RandomNumberGenerator.cs
- BufferedReadStream.cs
- DetailsViewUpdateEventArgs.cs
- Matrix3DConverter.cs
- PartialCachingControl.cs
- DictionaryContent.cs
- BufferCache.cs
- QuaternionRotation3D.cs
- DependencySource.cs
- AssertSection.cs
- PartialTrustVisibleAssembly.cs
- ReachDocumentReferenceSerializer.cs
- SmiRequestExecutor.cs
- EventlogProvider.cs
- CssClassPropertyAttribute.cs
- XmlAnyAttributeAttribute.cs
- CachedCompositeFamily.cs
- WorkflowPrinting.cs
- DispatchChannelSink.cs
- TextMarkerSource.cs
- HandleExceptionArgs.cs
- FixedSOMTableCell.cs
- BitmapSizeOptions.cs
- CacheHelper.cs
- figurelengthconverter.cs
- EncoderBestFitFallback.cs
- SafeTimerHandle.cs
- CodeNamespaceImportCollection.cs
- XmlSchemaImporter.cs
- DataGridItemCollection.cs
- DetailsViewDeleteEventArgs.cs
- SystemException.cs
- _LazyAsyncResult.cs
- HttpCachePolicyWrapper.cs
- ConditionalExpression.cs
- SymmetricKeyWrap.cs
- AccessViolationException.cs
- ObservableCollection.cs
- ToolStripContainer.cs
- PtsPage.cs
- SqlMethodAttribute.cs
- DesignerEditorPartChrome.cs
- ResourceFallbackManager.cs
- ContentType.cs
- SplitterDesigner.cs
- EdmToObjectNamespaceMap.cs
- MonthCalendarDesigner.cs
- BlobPersonalizationState.cs
- NamedPipeConnectionPoolSettings.cs
- MergablePropertyAttribute.cs
- PickBranch.cs
- NotFiniteNumberException.cs
- HttpGetClientProtocol.cs
- TransformedBitmap.cs
- RegistrationServices.cs
- BevelBitmapEffect.cs
- EncodingTable.cs
- XsdDataContractExporter.cs
- DataBindingExpressionBuilder.cs
- ColorPalette.cs
- RNGCryptoServiceProvider.cs
- EditorResources.cs
- GridViewUpdatedEventArgs.cs
- RoutedCommand.cs
- OdbcTransaction.cs
- SHA256Cng.cs
- CorrelationManager.cs
- TypeResolver.cs
- FamilyTypeface.cs
- RangeValidator.cs
- TimeManager.cs
- CultureTable.cs
- NonVisualControlAttribute.cs
- RootBrowserWindow.cs
- AddInAdapter.cs
- clipboard.cs
- ToolstripProfessionalRenderer.cs
- ToolboxDataAttribute.cs
- ScriptingProfileServiceSection.cs
- LockedAssemblyCache.cs
- FileDialog.cs
- JournalEntryListConverter.cs
- AssemblyHash.cs
- UnknownBitmapDecoder.cs
- BezierSegment.cs