Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- HierarchicalDataSourceControl.cs
- CopyAttributesAction.cs
- CodeExpressionRuleDeclaration.cs
- LowerCaseStringConverter.cs
- AnimationLayer.cs
- BackgroundWorker.cs
- XPathDocument.cs
- XamlDesignerSerializationManager.cs
- IImplicitResourceProvider.cs
- Highlights.cs
- ExpressionQuoter.cs
- PerspectiveCamera.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ScriptRegistrationManager.cs
- SqlTrackingService.cs
- SpecialNameAttribute.cs
- PropertyGridEditorPart.cs
- PropertyEntry.cs
- TextHintingModeValidation.cs
- DragDrop.cs
- SqlOuterApplyReducer.cs
- DesignerActionList.cs
- MemberAccessException.cs
- DistinctQueryOperator.cs
- AdRotator.cs
- PagePropertiesChangingEventArgs.cs
- WorkerRequest.cs
- MetadataFile.cs
- ObjectStorage.cs
- CountdownEvent.cs
- HyperLinkDesigner.cs
- Model3DGroup.cs
- EventLogPermissionAttribute.cs
- SecurityContext.cs
- MetadataItem.cs
- XmlTextReaderImplHelpers.cs
- SharedStatics.cs
- PageBreakRecord.cs
- DispatcherFrame.cs
- ObjectSecurity.cs
- ScriptHandlerFactory.cs
- TaskFileService.cs
- FlowPosition.cs
- XmlSchemaParticle.cs
- PreloadedPackages.cs
- MatrixKeyFrameCollection.cs
- StringToken.cs
- FrameworkElement.cs
- CultureSpecificCharacterBufferRange.cs
- TableStyle.cs
- EventLogEntryCollection.cs
- JsonReaderDelegator.cs
- PasswordBoxAutomationPeer.cs
- HttpStaticObjectsCollectionWrapper.cs
- SafeNativeMethods.cs
- RadioButton.cs
- ExecutionEngineException.cs
- FolderLevelBuildProviderCollection.cs
- FontConverter.cs
- StrongTypingException.cs
- DynamicDiscoSearcher.cs
- _TimerThread.cs
- BasicBrowserDialog.designer.cs
- EventSchemaTraceListener.cs
- TimeSpanValidator.cs
- Context.cs
- HttpContextWrapper.cs
- Variant.cs
- ObjectListField.cs
- TimeZoneInfo.cs
- GridViewRowEventArgs.cs
- DbDataReader.cs
- _LazyAsyncResult.cs
- XmlEnumAttribute.cs
- EncryptedData.cs
- RegistrySecurity.cs
- MSHTMLHostUtil.cs
- SqlClientMetaDataCollectionNames.cs
- TailCallAnalyzer.cs
- PerformanceCounterCategory.cs
- SerializationStore.cs
- QueryTask.cs
- XmlSchemaImporter.cs
- WCFBuildProvider.cs
- SQLByte.cs
- HttpFileCollection.cs
- RolePrincipal.cs
- ResourceManagerWrapper.cs
- MetadataElement.cs
- ChameleonKey.cs
- ConditionValidator.cs
- PopupRootAutomationPeer.cs
- ErrorView.xaml.cs
- StaticSiteMapProvider.cs
- ObjectDataSourceStatusEventArgs.cs
- CodeIdentifier.cs
- _SSPIWrapper.cs
- WebServiceFault.cs
- StylusShape.cs
- Html32TextWriter.cs