Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / MS / Internal / KnownBoxes.cs / 1 / 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
- RegularExpressionValidator.cs
- SByteConverter.cs
- DiscoveryService.cs
- NamespaceCollection.cs
- SQLStringStorage.cs
- XDRSchema.cs
- SecureStringHasher.cs
- messageonlyhwndwrapper.cs
- HttpRuntimeSection.cs
- TcpTransportElement.cs
- AssociationEndMember.cs
- ColumnClickEvent.cs
- X509CertificateClaimSet.cs
- XmlSchemaComplexType.cs
- InvokePattern.cs
- DataRowComparer.cs
- CoTaskMemHandle.cs
- AspNetCompatibilityRequirementsAttribute.cs
- DynamicMethod.cs
- WrappedReader.cs
- StandardOleMarshalObject.cs
- FloaterBaseParagraph.cs
- IndexedEnumerable.cs
- SiteIdentityPermission.cs
- HostExecutionContextManager.cs
- HealthMonitoringSection.cs
- RequestCachingSection.cs
- TileBrush.cs
- StringPropertyBuilder.cs
- unitconverter.cs
- DbProviderFactoriesConfigurationHandler.cs
- AnnotationElement.cs
- ColorContextHelper.cs
- EnumValidator.cs
- Parsers.cs
- RadioButtonBaseAdapter.cs
- UIElementHelper.cs
- ThemeableAttribute.cs
- FontStretch.cs
- SqlNodeTypeOperators.cs
- WaitHandle.cs
- WpfSharedBamlSchemaContext.cs
- VisemeEventArgs.cs
- FillRuleValidation.cs
- Vector3DValueSerializer.cs
- TcpWorkerProcess.cs
- HashRepartitionStream.cs
- Facet.cs
- HttpRuntimeSection.cs
- figurelength.cs
- SecurityNegotiationException.cs
- XmlSchemaSimpleType.cs
- WindowsButton.cs
- CallbackException.cs
- CalendarDay.cs
- Switch.cs
- ProxyWebPartConnectionCollection.cs
- SiteMapNodeCollection.cs
- GCHandleCookieTable.cs
- SourceSwitch.cs
- TextEffect.cs
- FieldNameLookup.cs
- TrustManagerPromptUI.cs
- SQLBinaryStorage.cs
- basevalidator.cs
- UndoManager.cs
- BigInt.cs
- SymmetricCryptoHandle.cs
- IndicCharClassifier.cs
- LicenseException.cs
- ListItemsCollectionEditor.cs
- DefaultPropertiesToSend.cs
- RectangleGeometry.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Nodes.cs
- TrackingProvider.cs
- WebReferencesBuildProvider.cs
- ToolStripProgressBar.cs
- FontSource.cs
- GridViewRowEventArgs.cs
- Menu.cs
- IISMapPath.cs
- RemotingAttributes.cs
- Attributes.cs
- PerformanceCounterPermissionAttribute.cs
- UpdatePanelTriggerCollection.cs
- EdmToObjectNamespaceMap.cs
- DataStorage.cs
- InfoCardSymmetricCrypto.cs
- Int64Storage.cs
- WebCategoryAttribute.cs
- GenerateHelper.cs
- ConnectionStringsExpressionBuilder.cs
- Monitor.cs
- XmlSchemaException.cs
- VirtualPathProvider.cs
- StringUtil.cs
- SecurityTokenTypes.cs
- CompositionAdorner.cs
- MailDefinition.cs