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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixUp.cs
- DtdParser.cs
- GenericPrincipal.cs
- DbConnectionPoolCounters.cs
- MorphHelper.cs
- ControlBuilder.cs
- BadImageFormatException.cs
- COM2Enum.cs
- WebPartManager.cs
- ValueQuery.cs
- NameHandler.cs
- WebPartConnectionsEventArgs.cs
- WorkflowDesignerColors.cs
- SamlConditions.cs
- GiveFeedbackEventArgs.cs
- DbProviderServices.cs
- DataGridViewMethods.cs
- SHA1.cs
- TextReader.cs
- ProcessModelSection.cs
- XPathNavigatorKeyComparer.cs
- SQLInt64Storage.cs
- ParsedAttributeCollection.cs
- MultiSelectRootGridEntry.cs
- DetailsViewCommandEventArgs.cs
- RootBrowserWindow.cs
- PropertyPathConverter.cs
- SByteConverter.cs
- PermissionRequestEvidence.cs
- ErrorStyle.cs
- LinqDataSourceContextEventArgs.cs
- PersonalizationStateInfo.cs
- NativeRightsManagementAPIsStructures.cs
- Configuration.cs
- DockPatternIdentifiers.cs
- Environment.cs
- ResourceReferenceExpression.cs
- XslAstAnalyzer.cs
- IsolatedStorageException.cs
- Page.cs
- ToolStripOverflow.cs
- FragmentNavigationEventArgs.cs
- XmlSchemaSimpleTypeRestriction.cs
- SelectionChangedEventArgs.cs
- HtmlHead.cs
- StorageComplexPropertyMapping.cs
- ResourceKey.cs
- CryptoApi.cs
- Math.cs
- DataGridViewRowsAddedEventArgs.cs
- ServiceParser.cs
- SwitchAttribute.cs
- BaseDataListComponentEditor.cs
- StorageBasedPackageProperties.cs
- UnauthorizedAccessException.cs
- AppDomainProtocolHandler.cs
- BuildProviderUtils.cs
- ControlEvent.cs
- MailSettingsSection.cs
- ResourceKey.cs
- GridViewColumnHeader.cs
- DocumentViewerBaseAutomationPeer.cs
- ObjectSelectorEditor.cs
- IndexedGlyphRun.cs
- FlowNode.cs
- ListenerSessionConnectionReader.cs
- ErrorTableItemStyle.cs
- EntityStoreSchemaFilterEntry.cs
- DocumentApplicationJournalEntry.cs
- DoWorkEventArgs.cs
- BaseCollection.cs
- Transform3D.cs
- UnsafeNativeMethods.cs
- TextRangeEditLists.cs
- ConstructorBuilder.cs
- SystemResourceHost.cs
- SettingsPropertyValueCollection.cs
- DelegateHelpers.Generated.cs
- BaseTemplatedMobileComponentEditor.cs
- InkCanvasAutomationPeer.cs
- SystemParameters.cs
- BooleanKeyFrameCollection.cs
- AssociationTypeEmitter.cs
- Visitors.cs
- Authorization.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CalendarDay.cs
- WebHttpBindingElement.cs
- SizeKeyFrameCollection.cs
- TokenBasedSet.cs
- JpegBitmapEncoder.cs
- AdapterSwitches.cs
- XmlSchemaElement.cs
- LogArchiveSnapshot.cs
- MarkupExtensionReturnTypeAttribute.cs
- XmlNavigatorStack.cs
- RemoteWebConfigurationHostServer.cs
- XmlExpressionDumper.cs
- UserPreferenceChangedEventArgs.cs
- Triplet.cs