Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Markup / KnownTypesHelper.cs / 1 / KnownTypesHelper.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // //--------------------------------------------------------------------------- using System; using System.IO; using System.Collections.Generic; using System.Reflection; using System.Diagnostics; // These are the non-generated parts of the KnownTypes and TypeIndexer classes #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { internal static partial class KnownTypes { // Keep Known WCP Types in a private array, accessed through an indexer private static TypeIndexer _typeIndexer = new TypeIndexer((int)KnownElements.MaxElement); internal static TypeIndexer Types { get { return _typeIndexer; } } #if PBTCOMPILER internal static void InitializeKnownTypes(Assembly asmFramework, Assembly asmCore, Assembly asmBase) { _typeIndexer.Initialize(asmFramework, asmCore, asmBase); } #endif } internal partial class TypeIndexer { public TypeIndexer(int size) { _typeTable =new Type[size]; } public System.Type this[int index] { get { Type t = _typeTable[index]; if (t == null) { t = InitializeOneType((KnownElements)index); } _typeTable[index] = t; return t; } } private Type[] _typeTable; } } // 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. // // //--------------------------------------------------------------------------- using System; using System.IO; using System.Collections.Generic; using System.Reflection; using System.Diagnostics; // These are the non-generated parts of the KnownTypes and TypeIndexer classes #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { internal static partial class KnownTypes { // Keep Known WCP Types in a private array, accessed through an indexer private static TypeIndexer _typeIndexer = new TypeIndexer((int)KnownElements.MaxElement); internal static TypeIndexer Types { get { return _typeIndexer; } } #if PBTCOMPILER internal static void InitializeKnownTypes(Assembly asmFramework, Assembly asmCore, Assembly asmBase) { _typeIndexer.Initialize(asmFramework, asmCore, asmBase); } #endif } internal partial class TypeIndexer { public TypeIndexer(int size) { _typeTable =new Type[size]; } public System.Type this[int index] { get { Type t = _typeTable[index]; if (t == null) { t = InitializeOneType((KnownElements)index); } _typeTable[index] = t; return t; } } private Type[] _typeTable; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TimeSpanOrInfiniteConverter.cs
- ScriptBehaviorDescriptor.cs
- MsmqIntegrationProcessProtocolHandler.cs
- UInt16Converter.cs
- NativeMethods.cs
- GeneralTransform3D.cs
- ColumnClickEvent.cs
- TaskExtensions.cs
- ConfigurationStrings.cs
- PersianCalendar.cs
- XmlReaderSettings.cs
- IList.cs
- SqlAliaser.cs
- PageAsyncTask.cs
- Rect.cs
- TableLayoutStyle.cs
- PathBox.cs
- HyperLinkStyle.cs
- PrivilegedConfigurationManager.cs
- ProfileEventArgs.cs
- ParseNumbers.cs
- MaskedTextProvider.cs
- ResolveInfo.cs
- SqlProfileProvider.cs
- FormViewCommandEventArgs.cs
- RemotingService.cs
- SmiGettersStream.cs
- SlotInfo.cs
- WebPartConnectionsConnectVerb.cs
- ImportContext.cs
- DataGridViewCellCollection.cs
- PeerNearMe.cs
- CheckBoxList.cs
- NavigationCommands.cs
- LocatorGroup.cs
- ListViewCommandEventArgs.cs
- AutomationProperties.cs
- CollectionsUtil.cs
- MultiSelector.cs
- AdCreatedEventArgs.cs
- ByteStorage.cs
- TileModeValidation.cs
- ArcSegment.cs
- sitestring.cs
- QueuePathDialog.cs
- StylusPointPropertyInfo.cs
- Freezable.cs
- InvalidDataException.cs
- SHA1CryptoServiceProvider.cs
- XPathQueryGenerator.cs
- RequestCachePolicy.cs
- MailAddressCollection.cs
- Span.cs
- DiffuseMaterial.cs
- ExpressionNormalizer.cs
- HttpHandlerAction.cs
- AsyncStreamReader.cs
- CodeGenerationManager.cs
- XmlAtomErrorReader.cs
- HtmlInputControl.cs
- OledbConnectionStringbuilder.cs
- SaveWorkflowAsyncResult.cs
- SQLSingleStorage.cs
- ObjectCacheHost.cs
- Parser.cs
- XPathSingletonIterator.cs
- AdornerLayer.cs
- ProcessHostConfigUtils.cs
- ScriptingAuthenticationServiceSection.cs
- ColorInterpolationModeValidation.cs
- Rule.cs
- RangeValueProviderWrapper.cs
- DataGridGeneralPage.cs
- SystemTcpStatistics.cs
- ShutDownListener.cs
- UIAgentMonitor.cs
- InputScope.cs
- AggregationMinMaxHelpers.cs
- LinqDataSourceEditData.cs
- TextBoxRenderer.cs
- Int32Animation.cs
- ProtocolsSection.cs
- XmlBuffer.cs
- dbenumerator.cs
- HttpClientCertificate.cs
- DetailsViewModeEventArgs.cs
- WeakEventManager.cs
- RuntimeArgumentHandle.cs
- LinkUtilities.cs
- ImageFormat.cs
- RuntimeTransactionHandle.cs
- ResourceReader.cs
- Fonts.cs
- CompletedAsyncResult.cs
- ToolboxControl.cs
- GridLengthConverter.cs
- GregorianCalendar.cs
- DllNotFoundException.cs
- ProfileBuildProvider.cs
- CompoundFileStreamReference.cs