Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / KnownBoxes.cs / 1305600 / KnownBoxes.cs
using System; using MS.Internal.WindowsBase; namespace MS.Internal.KnownBoxes { [FriendAccessAllowed] // Built into Base, also used by Core and Framework. internal static class BooleanBoxes { internal static object TrueBox = true; internal static object FalseBox = false; internal static object Box(bool value) { if (value) { return TrueBox; } else { return FalseBox; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using MS.Internal.WindowsBase; namespace MS.Internal.KnownBoxes { [FriendAccessAllowed] // Built into Base, also used by Core and Framework. internal static class BooleanBoxes { internal static object TrueBox = true; internal static object FalseBox = false; internal static object Box(bool value) { if (value) { return TrueBox; } else { return FalseBox; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MergePropertyDescriptor.cs
- DropDownButton.cs
- MachineKeyValidationConverter.cs
- FolderLevelBuildProvider.cs
- MDIControlStrip.cs
- Property.cs
- PixelShader.cs
- SerializationFieldInfo.cs
- FreeIndexList.cs
- EditorOptionAttribute.cs
- EventListenerClientSide.cs
- CharEntityEncoderFallback.cs
- AsyncResult.cs
- DriveInfo.cs
- DataGridTextBox.cs
- ListControl.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CapabilitiesSection.cs
- ActivityCodeDomSerializer.cs
- XamlReader.cs
- UnsafeNativeMethodsCLR.cs
- Section.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- TableCell.cs
- ContextMenu.cs
- DeclarationUpdate.cs
- AliasedSlot.cs
- Span.cs
- ToolStripItemClickedEventArgs.cs
- EncodingNLS.cs
- PageBuildProvider.cs
- XmlAnyAttributeAttribute.cs
- counter.cs
- XAMLParseException.cs
- SourceFilter.cs
- EtwTrace.cs
- XpsSerializationManager.cs
- BaseCodePageEncoding.cs
- COSERVERINFO.cs
- RepeaterItem.cs
- ListViewDeletedEventArgs.cs
- ReachFixedPageSerializer.cs
- NativeMethods.cs
- Base64Decoder.cs
- SecurityTokenValidationException.cs
- ZipIOCentralDirectoryBlock.cs
- PersistenceParticipant.cs
- GlyphElement.cs
- WindowsListView.cs
- SAPIEngineTypes.cs
- GeometryValueSerializer.cs
- ActivityExecutorSurrogate.cs
- documentsequencetextcontainer.cs
- StylusCollection.cs
- CardSpaceShim.cs
- Dump.cs
- RightNameExpirationInfoPair.cs
- FileRegion.cs
- NetDispatcherFaultException.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- XmlEventCache.cs
- OverlappedAsyncResult.cs
- CompiledIdentityConstraint.cs
- DiscardableAttribute.cs
- Stopwatch.cs
- PropertyDescriptorCollection.cs
- XmlDocumentFragment.cs
- SmtpDateTime.cs
- SqlMethods.cs
- Perspective.cs
- Int16.cs
- StoragePropertyMapping.cs
- EntityDataSourceValidationException.cs
- ConfigurationPermission.cs
- XmlValidatingReader.cs
- IndexerNameAttribute.cs
- DataGridItemEventArgs.cs
- SchemaMapping.cs
- MediaElement.cs
- ArgumentNullException.cs
- WeakReferenceList.cs
- XmlSchemaComplexContent.cs
- ComAdminWrapper.cs
- OleTxTransaction.cs
- SingleConverter.cs
- Decimal.cs
- DefaultMemberAttribute.cs
- MouseDevice.cs
- UInt16Converter.cs
- XmlMapping.cs
- DataGridSortCommandEventArgs.cs
- ExtentKey.cs
- DataTemplateSelector.cs
- ComboBoxItem.cs
- StagingAreaInputItem.cs
- HMACSHA1.cs
- GcHandle.cs
- SqlWriter.cs
- KernelTypeValidation.cs
- ConfigXmlSignificantWhitespace.cs