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
- ConfigurationManagerInternalFactory.cs
- FilteredReadOnlyMetadataCollection.cs
- EnumMember.cs
- DataGridViewHitTestInfo.cs
- KeyGestureValueSerializer.cs
- SamlSecurityToken.cs
- CommandField.cs
- SQLInt64.cs
- TableParagraph.cs
- UniformGrid.cs
- SchemaEntity.cs
- TimeManager.cs
- RadioButton.cs
- TdsParameterSetter.cs
- TableHeaderCell.cs
- SystemResourceKey.cs
- HMACSHA256.cs
- SqlRowUpdatedEvent.cs
- XmlNamespaceManager.cs
- Emitter.cs
- TriState.cs
- LookupNode.cs
- documentsequencetextcontainer.cs
- BaseProcessor.cs
- LeafCellTreeNode.cs
- AttachedAnnotationChangedEventArgs.cs
- XsltLibrary.cs
- PreviewPrintController.cs
- FixedPage.cs
- RightsManagementPermission.cs
- SqlFactory.cs
- WebProxyScriptElement.cs
- GPStream.cs
- HierarchicalDataBoundControlAdapter.cs
- ContextMenuStrip.cs
- TimeoutException.cs
- BinaryMethodMessage.cs
- MemberDescriptor.cs
- MergeFilterQuery.cs
- JumpList.cs
- BinaryObjectWriter.cs
- PassportAuthenticationModule.cs
- BindingsCollection.cs
- AuthenticationModulesSection.cs
- UIAgentCrashedException.cs
- AppDomainManager.cs
- ZipIOExtraFieldZip64Element.cs
- WebHeaderCollection.cs
- TextTreeTextBlock.cs
- TreeNodeBinding.cs
- SpellerHighlightLayer.cs
- RuleSettingsCollection.cs
- SqlDataSourceView.cs
- SelectingProviderEventArgs.cs
- _ChunkParse.cs
- RightsManagementEncryptedStream.cs
- ValidationHelper.cs
- RubberbandSelector.cs
- BamlBinaryWriter.cs
- TagPrefixCollection.cs
- KeyFrames.cs
- TabControl.cs
- Package.cs
- DrawItemEvent.cs
- AssemblyInfo.cs
- PtsHelper.cs
- CellTreeNode.cs
- XmlChildNodes.cs
- RegexTree.cs
- WebBrowserHelper.cs
- ToolBarButtonClickEvent.cs
- BoundPropertyEntry.cs
- ObservableDictionary.cs
- ContainerUIElement3D.cs
- ColorConverter.cs
- StatusBarPanel.cs
- TableTextElementCollectionInternal.cs
- PrivilegedConfigurationManager.cs
- DataGridViewAccessibleObject.cs
- DesignerView.Commands.cs
- SynchronousReceiveElement.cs
- TreeNodeConverter.cs
- ScriptResourceDefinition.cs
- RelationshipConverter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XmlFormatExtensionAttribute.cs
- XmlMembersMapping.cs
- KeyNotFoundException.cs
- DSACryptoServiceProvider.cs
- DesignSurfaceCollection.cs
- WebBrowserPermission.cs
- OrCondition.cs
- IRCollection.cs
- WebControlAdapter.cs
- RenderData.cs
- PropertyChangeTracker.cs
- UIElement.cs
- ConnectionProviderAttribute.cs
- ScriptMethodAttribute.cs
- TrimSurroundingWhitespaceAttribute.cs