Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / MS / Internal / Controls / EmptyEnumerable.cs / 1 / EmptyEnumerable.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Empty enumerable // // History: // 11/11/2004 KenLai : Created // //--------------------------------------------------------------------------- using System; using System.Collections; namespace MS.Internal.Controls { ////// Returns an Enumerable that is empty. /// internal class EmptyEnumerable: IEnumerable { // singleton class, private ctor private EmptyEnumerable() { } IEnumerator IEnumerable.GetEnumerator() { return EmptyEnumerator.Instance; } ////// Read-Only instance of an Empty Enumerable. /// public static IEnumerable Instance { get { if (_instance == null) { _instance = new EmptyEnumerable(); } return _instance; } } private static IEnumerable _instance; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Empty enumerable // // History: // 11/11/2004 KenLai : Created // //--------------------------------------------------------------------------- using System; using System.Collections; namespace MS.Internal.Controls { ////// Returns an Enumerable that is empty. /// internal class EmptyEnumerable: IEnumerable { // singleton class, private ctor private EmptyEnumerable() { } IEnumerator IEnumerable.GetEnumerator() { return EmptyEnumerator.Instance; } ////// Read-Only instance of an Empty Enumerable. /// public static IEnumerable Instance { get { if (_instance == null) { _instance = new EmptyEnumerable(); } return _instance; } } private static IEnumerable _instance; } } // 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
- x509utils.cs
- Listbox.cs
- HatchBrush.cs
- WebServiceEndpoint.cs
- TTSEngineTypes.cs
- CodeCatchClauseCollection.cs
- MethodMessage.cs
- PageThemeBuildProvider.cs
- ScriptReferenceEventArgs.cs
- CachedPathData.cs
- ConstraintCollection.cs
- ThreadAttributes.cs
- WindowsListViewGroup.cs
- StateManagedCollection.cs
- COAUTHINFO.cs
- PropertyInfoSet.cs
- ImageAutomationPeer.cs
- XPathException.cs
- RtfControls.cs
- XmlStreamStore.cs
- ContextInformation.cs
- RectangleF.cs
- SAPICategories.cs
- UserPreference.cs
- InvokePatternIdentifiers.cs
- ListView.cs
- __Filters.cs
- SerialReceived.cs
- ValueQuery.cs
- EventLogger.cs
- cookiecollection.cs
- Version.cs
- CodeRegionDirective.cs
- SiteMapDataSource.cs
- XmlILConstructAnalyzer.cs
- Binding.cs
- Rect3D.cs
- SortKey.cs
- XmlNodeReader.cs
- XpsInterleavingPolicy.cs
- UnsafePeerToPeerMethods.cs
- UnsafeNativeMethodsPenimc.cs
- Msec.cs
- TriggerAction.cs
- ListControl.cs
- EdmSchemaAttribute.cs
- XamlReader.cs
- FixedSOMImage.cs
- PreservationFileWriter.cs
- _NegoState.cs
- _SafeNetHandles.cs
- SystemIPAddressInformation.cs
- ColorInterpolationModeValidation.cs
- DataGridCaption.cs
- TableAutomationPeer.cs
- StyleCollection.cs
- RawStylusInputCustomDataList.cs
- BinaryObjectInfo.cs
- DataPagerFieldCollection.cs
- RightsDocument.cs
- SafeTokenHandle.cs
- Setter.cs
- MDIWindowDialog.cs
- smtpconnection.cs
- XsltCompileContext.cs
- Exceptions.cs
- CharStorage.cs
- SafeRegistryHandle.cs
- TypeLoadException.cs
- TemplateFactory.cs
- WpfWebRequestHelper.cs
- Int16Converter.cs
- SafeNativeMethods.cs
- storepermissionattribute.cs
- RegistryPermission.cs
- HeaderCollection.cs
- CodeAttributeDeclaration.cs
- GraphicsContext.cs
- CodeVariableDeclarationStatement.cs
- Helper.cs
- KnownColorTable.cs
- DateTimeParse.cs
- ClonableStack.cs
- SqlUserDefinedAggregateAttribute.cs
- LightweightCodeGenerator.cs
- LocalizationParserHooks.cs
- QueryOperatorEnumerator.cs
- DesignerHelpers.cs
- HttpSessionStateBase.cs
- WebPartConnectionsCloseVerb.cs
- FilterEventArgs.cs
- SerialPort.cs
- SubstitutionResponseElement.cs
- CompensatableSequenceActivity.cs
- TextRangeEditTables.cs
- SevenBitStream.cs
- DateTimeConverter2.cs
- ControlIdConverter.cs
- CollectionViewSource.cs
- DataGridViewRow.cs