Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / KnownTypesHelper.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IteratorFilter.cs
- DurableInstanceProvider.cs
- ConnectionPoolManager.cs
- SafeCertificateContext.cs
- ReturnType.cs
- WsiProfilesElement.cs
- RectConverter.cs
- Panel.cs
- Attachment.cs
- SharedPersonalizationStateInfo.cs
- CompressedStack.cs
- GroupBox.cs
- LockCookie.cs
- storepermissionattribute.cs
- RegexBoyerMoore.cs
- MultipartContentParser.cs
- DataTemplate.cs
- ConditionCollection.cs
- cookiecontainer.cs
- TemplateXamlTreeBuilder.cs
- ArgumentOutOfRangeException.cs
- XsdDuration.cs
- IntSecurity.cs
- WpfGeneratedKnownTypes.cs
- OdbcErrorCollection.cs
- updatecommandorderer.cs
- CellIdBoolean.cs
- HuffCodec.cs
- OptimalBreakSession.cs
- EditorZone.cs
- OperatingSystem.cs
- Geometry3D.cs
- MenuItem.cs
- SqlGatherProducedAliases.cs
- Parser.cs
- SmiGettersStream.cs
- SingleStorage.cs
- DataGridViewImageColumn.cs
- DesignerActionItemCollection.cs
- Pen.cs
- ClickablePoint.cs
- Win32SafeHandles.cs
- DocComment.cs
- FontWeight.cs
- EncryptedData.cs
- WebPartCollection.cs
- Misc.cs
- EventLogPermissionEntry.cs
- RepeatInfo.cs
- XsltArgumentList.cs
- ScrollViewerAutomationPeer.cs
- Panel.cs
- Compensate.cs
- DockAndAnchorLayout.cs
- HtmlInputButton.cs
- ModelTreeEnumerator.cs
- HelpProvider.cs
- BaseEntityWrapper.cs
- WebServiceParameterData.cs
- SelectiveScrollingGrid.cs
- QuerySafeNavigator.cs
- TextChangedEventArgs.cs
- SelectionHighlightInfo.cs
- ExitEventArgs.cs
- ParameterCollection.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- DSASignatureFormatter.cs
- SubMenuStyle.cs
- DataGrid.cs
- StrongNameHelpers.cs
- TextTreePropertyUndoUnit.cs
- COM2EnumConverter.cs
- MonthCalendar.cs
- SqlNotificationEventArgs.cs
- SystemTcpStatistics.cs
- OleTxTransaction.cs
- WebPartConnectionsConnectVerb.cs
- PerformanceCountersElement.cs
- CursorConverter.cs
- NullableBoolConverter.cs
- AnimatedTypeHelpers.cs
- ProcessManager.cs
- ObjectReferenceStack.cs
- DocComment.cs
- _NTAuthentication.cs
- TrackingDataItemValue.cs
- InProcStateClientManager.cs
- SelectedDatesCollection.cs
- NameValueConfigurationCollection.cs
- SQLSingleStorage.cs
- DataSpaceManager.cs
- XPathNavigatorReader.cs
- xml.cs
- WebServiceResponse.cs
- TextServicesDisplayAttributePropertyRanges.cs
- HtmlTableCell.cs
- ProtocolsConfiguration.cs
- LogStore.cs
- SimpleHandlerFactory.cs
- PagedDataSource.cs